Jump to content

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.
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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.