Bug #17739: form select multiple returns double values

From: Date: Thu, 13 Jun 2002 11:35:52 +0000
Subject: Bug #17739: form select multiple returns double values
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10321@lists.php.net to get a copy of this message
From: php@remove.gustl.net Operating system: all PHP version: 4.2.1 PHP Bug Type: Unknown/Other Function Bug description: form select multiple returns double values A very special (maybe browser only) problem, when I post a form under following conditions: 1. form enctype="multipart/form-data" 2. <select ..> or <select multiple..> with unicode-values 3. and a file upload 4. only from IE 5.0 (30% of my visitors), other browsers ok 5. and you select a value with unicodes the returned array contains the selected values twice, like: ["currency"]=> array(2) { [0]=> string(12) "€ Euro" [1]=> string(12) "€ Euro" } the script (www.gustl.at/testmultisel.php): <html> <head> <title>select multiple</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form method="post" enctype="multipart/form-data"> which are your favorite currencies <select size="2" multiple name="currency[]"> <option>&#8364; Euro</option> <option>$ Dollar</option> </select><br> and send a file <input type="file" name="uploadedfile"><br> <input type="submit"> </form> <?php echo "<br>post: <listing>"; var_dump ($_POST); echo "</listing>"; ?> </body> </html> -- Edit bug report at http://bugs.php.net/?id=17739&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17739&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17739&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17739&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17739&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17739&r=support Expected behavior: http://bugs.php.net/fix.php?id=17739&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17739&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17739&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17739&r=globals

« previous php.bugs (#10321) next »