Jump to content

Archived

This topic is now archived and is closed to further replies.

pedroas

Bug in I.E. 6 post multpart/form-data with special chars???

Recommended Posts

Hi folks...

I have a page with a form like this
[code]
<pre>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Page Title</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
</title>
<body>
   <form name="frm155" action="nextpage.php" method="post" enctype="multipart/form-data">
    <label for="id1">Name</label><input type="text" id="id1" name="si_name" value="" />
    <label for="id2">Telephone</label><input type="text" id="id2" name="si_phone" value="" />
    <label for="id3">Date</label><input type="text" id="id3" name="si_fone" value="" />
    <label for="id4">Message</label><textarea id="id4" name="si_message" rows="5" cols="80"></textarea>
    <!-- possibly I could have some file upload -->
   <input type="submit" />
   </form>
</body>
</pre>
[/code]
It works fine except when some users cut and paste from MS-Word, or any other aplication with some special caracter like a bullet or a dash. In nextpage.php in $_REQUEST I get all variables but without 'si_name'. Always the first variable disapears. This only happens in IE, in FF it's ok. I'm using IE 6 in Windows, Apache 2.2 e php 4.4.2 in a Linux environment.

tks in advance..

Pedro A.

Share this post


Link to post
Share on other sites
I added code tags to your post.  Your end pre tag wasn't a closing tag.

Do this on your processing page: print_r($_REQUEST);

And see if it's actually missing.  I'm guessing you're just not processing it correctly.

Share this post


Link to post
Share on other sites
Yes, I've tried
var_dump($_REQUEST)
and the first input field is not there. Just one thing I've missed to tell: the special chars goes in textarea.

Sample text
Obs. 10/08 CONTATO COM SR. FIRMINO – MANIFESTAÇÃO AO SETOR.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.