note 68365 added to function.htmlentities
| From: | stefaano at osu1 dot php dot net | Date: | Mon, 24 Jul 2006 18:32:53 +0000 |
| Subject: | note 68365 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115102@lists.php.net to get a copy of this message | ||
important question:
why does this script work in Firefox 1.5.0.4 and not in MS IE 6 ?
<?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<title>Demostration</title>
</head>
<body>
<?php echo "<form
action=\"".$_SERVER['PHP_SELF']."\"method=\"post\">"
?>
<p>
Insert text here... <input type="text" name="textWritten"
size="20" />
<input type="submit" name="send" value="send" />
</p>
</form>
<p>
<?php if(isset($_POST['send'])) echo "you wrote:
".htmlentities($_POST['textWritten'], ENT_QUOTES, "UTF-8"); ?>
</p>
</body>
</html>
in firefox the entities are ok while in explorer it seems the function htmlentities does not work!
----
Server IP: 213.92.11.19
Probable Submitter: 80.181.229.160
----
X-Spam-Status: No, hits=3.7 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_60_70,HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- http://master.php.net/note/edit/68365
Del: integrated -- http://master.php.net/note/delete/68365/integrated
Del: useless -- http://master.php.net/note/delete/68365/useless
Del: bad code -- http://master.php.net/note/delete/68365/bad+code
Del: spam -- http://master.php.net/note/delete/68365/spam
Del: non-english -- http://master.php.net/note/delete/68365/non-english
Del: in docs -- http://master.php.net/note/delete/68365/in+docs
Del: other reasons-- http://master.php.net/note/delete/68365
Reject -- http://master.php.net/note/reject/68365
Search -- http://master.php.net/manage/user-notes.php