Re: About submitting multipart.forms
| From: | Richard Lynch | Date: | Tue, 09 Jul 2002 06:10:14 +0000 |
| Subject: | Re: About submitting multipart.forms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-106298@lists.php.net to get a copy of this message | ||
>has anyone met with this problem.. using IE to submit multipart forms. in
>text fields if there is "&" ... all text after it will disappear..quite a
>nuisance when submitting
You probably aren't using http://php.net/htmlentities
as you pass data back
out to the browser.
Microsoft, in it's infinite wisdom, has decided that things like:
© don't really need the semi-colon to be HTML Character Entity
thingies, and © is just as good. (Try it!)
Thus, if you don't use htmlentities to turn "®ulation require" into
"&regulations require", then MS has foolishly decided that "®"
*must*
be the HTML Entity ®, and you're just forgetting the ;
You should be using htmlentities anyway, but it's quite annoying when
dumping data to the browser that MS does such stupid things with it.
Sigh.
Anyway, moral of the story:
*ANY* time you are sending strings out to the browser as data, use
<?php echo htmlentities($data);?> on the data part.
EG:
<INPUT TYPE=HIDDEN NAME=data VALUE="<?=htmlentities($data);?>">
--
Like Music? http://l-i-e.com/artists.htm