Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#25474 [Opn->Fbk]: posting arrays from a select box with multiple select is not working properly
ID: 25474
Updated by: [email]sniper@php.net[/email]
Reported By: fmuller at cisco dot com
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: redhat 7.3
PHP Version: 4.3.3
New Comment:
Works fine for me. How did you configure PHP?
How did you configure PHP for Apache2?
Add this line to your test script:
echo $HTTP_RAW_POST_DATA;
And set "always_populate_raw_post_data" php.ini option to 'On'. Then
post the result here.
Previous Comments:
------------------------------------------------------------------------
[2003-09-10 14:30:47] fmuller at cisco dot com
Description:
------------
Red Hat 7.3/Apache 2.0/PHP 4.3.3.
If I select multiple selections on a select box,
with an array name,
with a form method of post
I do not get the array of selected values I expect.
If one option is selected it works fine.
If I use a method of get it works fine.
Here is what phpinfo.php displays when I select 1 and 2:
_REQUEST["param"]
Array
(
[0] => 1
[1] => 2param[]=1
[2] => 2
)
_POST["param"]
Array
(
[0] => 1
[1] => 2param[]=1
[2] => 2
)
Reproduce code:
---------------
<html>
<body>
<form method=post action=phpinfo.php>
<select name="param[]" multiple size=6>
<option value=0>0</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
</select>
<input type=submit>
</form>
</body>
</html>
------------------
phpinfo.php
<?
phpinfo();
?>
Expected result:
----------------
_REQUEST["param"]
Array
(
[0] => 1
[1] => 2
)
_POST["param"]
Array
(
[0] => 1
[1] => 2
)
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=25474&edit=1[/url]
sniper@php.net Guest
-
#25474 [Bgs]: posting arrays from a select box with multiple select is not working properly
ID: 25474 User updated by: fmuller at cisco dot com -Summary: apache2filter: posting from a multiple select box is not... -
#25474 [Opn->Fbk]: apache2filter: posting from a multiple select box is not working correctly
ID: 25474 Updated by: sniper@php.net Reported By: fmuller at cisco dot com -Status: Open +Status: ... -
#25474 [Com]: apache2filter: posting from a multiple select box is not working correctly
ID: 25474 Comment by: boris at gamate dot com Reported By: fmuller at cisco dot com Status: Open Bug Type: ... -
#25474 [Fbk->Opn]: posting arrays from a select box with multiple select is not working properly
ID: 25474 User updated by: fmuller at cisco dot com Reported By: fmuller at cisco dot com -Status: Feedback... -
#25474 [NEW]: posting arrays from a multiply selected select box not working properly
From: fmuller at cisco dot com Operating system: redhat 7.3 PHP version: 4.3.3 PHP Bug Type: *Web Server problem Bug...



Reply With Quote

