以下代碼在Chrome中正確重寫,但不在IE中...爲什麼?Rederict僅適用於specefic瀏覽器
(...)
$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>";
}
(...)
沒有研究的努力。 http://social.msdn.microsoft.com/Forums/ie/en-US/604dac15-564d-4111-844c-cfe5c36f0525/meta-httpequivrefresh-issue-with-ie-7 btw。我建議標題重定向 –