This is my code :
<?php
require_once ('forum_db.php');
$query = "INSERT INTO threads (topic, author, post, replies, last_reply, category) VALUES ('$topic', '$author', '$post', '$replies', '$author', '$category')"
?>
<form action="posttopic.php" method=post>
Topic : <input type=text name="topic" size=20><br>
<input type=hidden name="category" value="general">
Message : <input type=text name="post" size=20><br>
<input type=hidden name="author" value="guest"><br>
<input type=hidden name="replies" value="0"><br>
<input type=submit name="submit" value="::Submit/:.">
</form>
I want it to send the data to the database using the form. However, once I've entered everything and hit submit, it doesnt send to the database. What's wrong with this script. Anyone?