Page not forwarding
Posted: Sun Feb 21, 2010 8:00 am
I have a contact form on my website and use the following to send it. I use the exact same form on another one of my websites and it works fine but on this one, although the email does send, it just ends with a blank screen and does not forward on to the correct page. Any idea's why?
Code: Select all
if (isset($HTTP_GET_VARS["sendmessage"])){
$name = @$HTTP_POST_VARS["nam"];
$eml = @$HTTP_POST_VARS["eml"];
$msg = @$HTTP_POST_VARS["msg"];
$regarding = @$HTTP_POST_VARS["regarding"];
$to = "my@email.co.uk";
$subject = "Josh Forwood - $regarding";
$body = "From (Name): $name \nEmail: $eml \nRegarding: $regarding \nMessage: $msg \nIP Address: $add";
$header = "From: $name <$eml>";
mail($to, $subject, $body, $header);
header("location:http://www.joshforwood.co.uk/?confirm");
exit(0);
}