Could some one tell me what is wrong with my contact us form ?
Parse error: syntax error, unexpected '@' in /home2/chrisvw/public_html/contact_us.php on line 3
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = softwareeditorial@googlemail.com;
$mailsubj = "Software Enquiry";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form: or whatever else you want \n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location:http://www.softwareeditorial.com/contact_us.php");
Parse error: syntax error, unexpected '@' in /home2/chrisvw/public_html/contact_us.php on line 3
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = softwareeditorial@googlemail.com;
$mailsubj = "Software Enquiry";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form: or whatever else you want \n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location:http://www.softwareeditorial.com/contact_us.php");
Comment