The following code rederict correctly in Chrome, but not in IE... why?
(...)
$x = mysql_real_escape_string($_POST['x']);
$x = mysql_real_escape_string($_POST['x']);
$x = mysql_real_escape_string($_POST['x']);
$x = mysql_real_escape_string($_POST['x']);
$MomentEvent = mysql_real_escape_string($_POST['MomentEvent']);
{
$registerquery = mysql_query("INSERT INTO users_event (x, x, x, x, x, MomentEvent) VALUES('".$x."', '".$_SESSION ['x']."', '".$x."', '".$x."', '".$x."', '".$confirm_code=md5(uniqid (rand())). "'); ");
if($registerquery)
{
echo "<h1>XXXX</h1>";
echo "<p>XXXXX</p>";
echo "<meta http-equiv='refresh' content='0;show2.php?MomentEvent=<?php echo $MomentEvent ?>' />";
}
else
{
echo "<h1>Error</h1>";
echo "<p>Sorry, your registration failed. Please go back and try again.</p>";
}
(...)
I think you'd be better off using the header()
function to send the appropriate HTTP header for a redirect, like this:
header( "show2.php?MomentEvent=" . $MomentEvent );
If you want to stick with the method you're currently using, you'll want to include the URL=
attribute, so it would look like this:
<meta http-equiv='refresh' content='0;URL=show2.php?MomentEvent=<?php echo $MomentEvent; ?>' />