I have created a form per the directions of the tutorials and have entered the following code on the .php page as directed:
<?PHP
$mailto = "info@sfevcx.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Contact BIC";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
The form is still not functional and I am receiveing the error message:
Parse error: syntax error, unexpected '<' in /home/qwxqsmue/public_html/action.php on line 40
Please help! What am I doing wrong.
Suzanne
<?PHP
$mailto = "info@sfevcx.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Contact BIC";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
The form is still not functional and I am receiveing the error message:
Parse error: syntax error, unexpected '<' in /home/qwxqsmue/public_html/action.php on line 40
Please help! What am I doing wrong.
Suzanne
Comment