"; if ($_POST[name]) { $sql="INSERT INTO Moviescomments (ID, Name, Email, Website, Comment) VALUES ('$id','$_POST[name]','$_POST[email]','$_POST[website]','$_POST[comment]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "Done!"; echo "

Your comment has been added

"; } else { echo "Oops!"; echo "

Something went wrong

"; } echo "

if you didn't redirected automatically
click here

"; echo ""; mysql_close($con) ?>