IE9 not Redirecting, page looping.
Posted: Thu Jan 26, 2012 2:16 am
I am trying to start an online business where I host, and I require that my clients fill out a form. The problem is that the php form has an html page within it that displays a message along with a logo (img). The problem that I am having is that after 5 seconds the page redirects to where it should in GC and FF but not in IE9.
I have been all over the web and on almost every forum, tube video and php help site that I could find, trying to learn php or html in an attempt to solve the problem. I am a beginner and know very little about programming, sales and marketing is my main avenue. This code I wrote following an online tutorial on youtube, it works well, and I use it often.
I have found the fix, I am now at a loss as to where the
header("Cache-Control: no-cache, must-revalidate");
is intended to go inside the code. I tried a few options and nothing works. IE9 is still giving me head-cramps...
This is my code, and I am stuck. can you please tell me where to the "header"?
I have been all over the web and on almost every forum, tube video and php help site that I could find, trying to learn php or html in an attempt to solve the problem. I am a beginner and know very little about programming, sales and marketing is my main avenue. This code I wrote following an online tutorial on youtube, it works well, and I use it often.
I have found the fix, I am now at a loss as to where the
header("Cache-Control: no-cache, must-revalidate");
is intended to go inside the code. I tried a few options and nothing works. IE9 is still giving me head-cramps...
This is my code, and I am stuck. can you please tell me where to the "header"?
Code: Select all
<?php
/* Subject and email variables */
$emailSubject = 'signup!';
$webMaster = 'me@mysitel.com';
/* Gathering Data Variables From The Form */
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$business = $_POST['business'];
$address = $_POST['address'];
$body = <<<EOD
<br><hr><br>
Name: $name<br>
Email: $email<br>
Phone: $phone<br>
Business: $business<br>
Address: $address<br>
EOD;
$headers = "Cache-Control: no-cache, must-revalidate";
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail ($webMaster, $emailSubject, $body, $headers) ;
/*Results rendered as HTML*/
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="5;http://www.mysite.com/nextpage.html">
<style type="text/css">
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
color: #999;
}
body {
background-color: #000;
}
</style>
<style type="style.css">
<!--
body{
background-color:#000000;
font-family: Arial, Verdana, Tahoma, Sans-Serif;
font-color: #cccccc;
font-size: 20px;
}
-->
</style>
</head>
<div align="center">
<p> </p>
<p><img src="images/phpbanner.gif" width="600" height="250" alt="logo" /></p>
<p>Follow from the "Next" page to the Payment page to complete the "signing up" process.</p>
<p> </p>
<p>After that you will then be directed to the "following" page.</p>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>