|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-13 07:35 UTC] php at remove dot gustl dot net
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>€ 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>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 18:00:01 2025 UTC |
I also face the same issue. check the below code. <body> <form method="post" action="fpost.php"> <table> <tr> <td>Name</td> <td><input type="text" name="a[]" size="20"></td> </tr> <tr> <td>Name 1</td> <td><input type="text" name="a[]" size="20"></td> </tr> <tr> <td>Name 2</td> <td><input type="text" name="a[]" size="20"></td> </tr> <tr> <td>Name 3</td> <td><input type="text" name="a[]" size="20"></td> </tr> <tr> <td>Go</td> <td><input type="submit" value="Proceed"></td> </tr> </table> </form> my print_r($_POST) returns as Array ( [a] => Array ( [0] => a [1] => b [2] => c [3] => da[]=a [4] => b [5] => c [6] => d ) ) I get this issue on IE and Firefox. Any Help