Hi,
I've been trying to fix this for hours with no luck. My site si www.tribaltrends.com. I am getting the following error message:
Parse error: syntax error, unexpected '@' in /home/jamyatsj/public_html/action.php on line 8
I am not sure if its comming from the email form page, or the thank you page. This is very complicated for me.
Here is my code:
<?PHP
$mailto = "terrapin48@charter.net"
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "contact form submission";
$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);
Its probably something simple but I think I have been working on this for so long I am overlooking something!!
Thanks for the help!!!
I've been trying to fix this for hours with no luck. My site si www.tribaltrends.com. I am getting the following error message:
Parse error: syntax error, unexpected '@' in /home/jamyatsj/public_html/action.php on line 8
I am not sure if its comming from the email form page, or the thank you page. This is very complicated for me.
Here is my code:
<?PHP
$mailto = "terrapin48@charter.net"
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "contact form submission";
$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);
Its probably something simple but I think I have been working on this for so long I am overlooking something!!
Thanks for the help!!!
Comment