Hello folks,
I found a tutorial yesterday to use a php email form code, and it is working on my site: http://inprocess.ca/sam/_ContactUs.asp
however, once I send the message, it goes to a "Your message was successfully sent!" page with nothing else. How can I add a code in my contact.php so that it'll redirect the window back to my main site?
I've searched but found nothing yet.. Here is the php code for my email form:
Thank you for your time and help!
<?
$subject="from ".$_GET['your_name'];
$headers= "From: ".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail("myemail@gmail.com", $subject, "
<html>
<head>
<title>Contact</title>
</head>
<body>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
I found a tutorial yesterday to use a php email form code, and it is working on my site: http://inprocess.ca/sam/_ContactUs.asp
however, once I send the message, it goes to a "Your message was successfully sent!" page with nothing else. How can I add a code in my contact.php so that it'll redirect the window back to my main site?
I've searched but found nothing yet.. Here is the php code for my email form:
Thank you for your time and help!
<?
$subject="from ".$_GET['your_name'];
$headers= "From: ".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail("myemail@gmail.com", $subject, "
<html>
<head>
<title>Contact</title>
</head>
<body>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>