Help. Am new to all of this, and struggling. My website is www.villainthesunshine.com
On the booking page I have a form. If I click on the form submit button, although I can see action.php come up in the bottom left hand corner, nothing happens; no thank you page and no email.
The booking form is currently set to action.php, post and multipart/form-data.
The action.php page is set to php in page properties and the html is in Beginning of Body and reads:
<?PHP
$mailto = "booking@villainthesunshine.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;booking@villainthesunshine.com
}
$mailsubj = "Villa Booking";
$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);
?>
Any advice gratefully received!
On the booking page I have a form. If I click on the form submit button, although I can see action.php come up in the bottom left hand corner, nothing happens; no thank you page and no email.
The booking form is currently set to action.php, post and multipart/form-data.
The action.php page is set to php in page properties and the html is in Beginning of Body and reads:
<?PHP
$mailto = "booking@villainthesunshine.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;booking@villainthesunshine.com
}
$mailsubj = "Villa Booking";
$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);
?>
Any advice gratefully received!
Comment