Parse error: parse error, unexpected T_VARIABLE in /home/shane/public_html/343/submit.php on line 4
The code i have is
<?php
if($_post['submit']) {
$title =$_post['title']
$user =$_post['user']
$story =$_post['story']
if((empty($title)) OR (empty($story))
{
echo<font color="#E4E4E4" face="Tahoma" size="2"><b>Error: Please fill out all forms</b></font>
} else {
//htmlspecialchars()
$title = htmlspecialchars($title);
$user = htmlspecialchars ($user);
$query = "INSERT INTO News (ID, title, user, story) VALUES ('', '$titles', '$user', '$story' mysql_query($query) or die(mysql_error());
echo "<font color="#E4E4E4" face="Tahoma" size="2"><b>News added successfully</b></font></body>
";
}
}
?>
Thanks in advance.
BSF
Edited by bsf, 27 March 2006 - 03:52 AM.
