Hi All
I've redesigned my site and have a new form. Trouble is, I can't get to the PHP page, have been round and round the tutorials and the forum. Can anyone spot the obvious mistake please?
Form is at:
http://www.villainthesunshine.com/sp...tal-villa.html
my thank you page is titled action. It's set to php and the code, which is in the beginning of body reads:
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "booking@villainthesunshine.com";
$mailsubj = "Villa Offers";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
Thanks guys
I've redesigned my site and have a new form. Trouble is, I can't get to the PHP page, have been round and round the tutorials and the forum. Can anyone spot the obvious mistake please?
Form is at:
http://www.villainthesunshine.com/sp...tal-villa.html
my thank you page is titled action. It's set to php and the code, which is in the beginning of body reads:
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "booking@villainthesunshine.com";
$mailsubj = "Villa Offers";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
Thanks guys
Comment