summaryrefslogtreecommitdiff
path: root/create_thread.php
diff options
context:
space:
mode:
Diffstat (limited to 'create_thread.php')
-rw-r--r--create_thread.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/create_thread.php b/create_thread.php
index dc0ce06..4598ce2 100644
--- a/create_thread.php
+++ b/create_thread.php
@@ -3,6 +3,7 @@
<html>
<head>
<title>Create a thread - cflip.net forum</title>
+ <link rel="stylesheet" href="styles/style.css">
</head>
<body>
<?php include_once 'templates/header.php' ?>
@@ -58,9 +59,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$sql = "UPDATE categories SET `cat_thread_count` = `cat_thread_count` + '1' WHERE cat_id = " . $thread_cat . ";";
mysqli_query($dbc, $sql);
- header("Location: /forum/thread/" . $thread_id);
+ header("Location: viewthread.php?id=" . $thread_id);
}
}
?>
</body>
-</html> \ No newline at end of file
+</html>