Hi,
I am following a beginners tutorial on php/msql and am encountering a t-string error on a line that is only html.
The code looks like this:
<?php
include("dbconnect.php");
if ($POST["submit"] == "Sign")
{
$query = "insert into guestbook
(name,location,email,url,comments)
values
($POST'$name', $POST'$location', $POST'$email', $POST'$url', $POST'$comments')
;
mysql_query($query) or
die (mysql_error());
?>
<h2>Thanks!</h2>
<h2><a href="view.php">View my guestbook.</a></h2>
<?php
}
else
{
include("sign.php");
}
?>
The error occurs on the "View my guestbook" line.
When I entirely remove that line I get the same error on the else statement's include line.
Any suggestions would be appreciated.
Thanks,
jack