Not sure if you pasted all the code in your script but i notice that you didn't assign anything to the variables $submit, $node, $title, $description, $postname, $email
<?
$connect = odbc_connect("forum", "root", "");
if(isset($submit)) // check if submitted button is clicked
{
// insert the record in the database
$resultupdate=odbc_exec($connect,"insert into forum
(parentcode,title,description,uname,email) VALUES
($node,'$title','$description','$postname','$email')");
header("location:forum.php"); // open forum.php file to display the thread
exit;
}
?>
In the above code $submit will always not be set so the code in the if statement won't even run.
Try assigning the $_POST values to the variables ie
$submit = $_POST['submit'];
$node = $_POST['node'];
$title = $_POST['title'];
etc
or use $_POST directly
if(isset($_POST['submit'])){
//........
}