Anyone have any idea why when my, "thank you for writing, we'll now take you back to our homepage," takes viewer back to new load of homepage? Then when you click to exit, there's two home pages two click off of instead of one.
How do you make it return to original page they opened? Here's my stuff. What's wrong with this?
</HEAD>
<html>
<title>childoutreachbg.com(JavaScript: Timed Redirect on Page Load)</title>
<body onload=setTimeout("location.href='http://www.childoutreachbg.com/index.html'",5000) bgcolor="#FFFFFF">
<!-- time is in miliseconds 1000 is equal to ten seconds -->
</body>
</html>
</HEAD>
<BODY>
<H2>Thanks for Writing,we'll now take you back to our home page!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "russanddora@childoutreachbg.com";
$mailsubj = "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))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HEAD>
How do you make it return to original page they opened? Here's my stuff. What's wrong with this?
</HEAD>
<html>
<title>childoutreachbg.com(JavaScript: Timed Redirect on Page Load)</title>
<body onload=setTimeout("location.href='http://www.childoutreachbg.com/index.html'",5000) bgcolor="#FFFFFF">
<!-- time is in miliseconds 1000 is equal to ten seconds -->
</body>
</html>
</HEAD>
<BODY>
<H2>Thanks for Writing,we'll now take you back to our home page!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "russanddora@childoutreachbg.com";
$mailsubj = "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))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HEAD>
Comment