if(isset($_POST['Create'])){ $name = $_POST['name']; $text = $_POST['text']; $author = $user['login']; $razdel = $_POST['razdel']; mysql_query("INSERT INTO `forum_topics` SET `name` = ".$name.", `text` = '".$text."', `author` = '".$author."', `time` = '".time()."', `razdel` = '".$razdel."'"); header("Location: forum_topics.php?id=".$razdel.""); }