Hello, so i followed the tutorials and have published my pages with forms however my thank you page comes up with the following message when i subscribe.
Parse error: syntax error, unexpected '"' in /home/mtonisjf/public_html/action.php on line 10
My webpage is:
www.stream-memobile.com
Heres the problem page:
I have contact forms on three pages so i really need my thank you page to work i put this script in to the html code box is it correct:
<?PHP
$mailto = "nicholasmdobbs********.com";
$email = "contact form submission;
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Type your mail subject here";
$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);
?>
Thanks for your help in advance guys, i have to have this finished by tommorow for my university product so pressure is on.
Thanks, Nick
Parse error: syntax error, unexpected '"' in /home/mtonisjf/public_html/action.php on line 10
My webpage is:
www.stream-memobile.com
Heres the problem page:
I have contact forms on three pages so i really need my thank you page to work i put this script in to the html code box is it correct:
<?PHP
$mailto = "nicholasmdobbs********.com";
$email = "contact form submission;
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Type your mail subject here";
$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);
?>
Thanks for your help in advance guys, i have to have this finished by tommorow for my university product so pressure is on.
Thanks, Nick
Comment