The following code causes IE to break the </h1> tag.

<?php
session_start();
header("Cache-control: private");
echo "<html>
<head><title>logout</title>
</head>
<body>
<h1 align=\"center\">Logout page</h1>";
$_SESSION = array();
session_destroy();
echo "<p>Session destroyed</p>\n";
echo "</body>
</html>\n";
?>

View/Source in IE: displays this (note </h1> broken):

<html>
<head><title>logout</title>
</head>
<body>
<h1 align="center">Logout page</<p>Session destroyed</p>
</body>
</html>
h1>

Details: Works fine in other browsers I've tried, and this version of IE (5.5) does -not- have cookies enabled.

Any ideas?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to