#22251 [Bgs]: wrong parameters in $_GET/$_PUT tables
| From: | kr at bpm dot pl | Date: | Tue, 18 Feb 2003 07:30:15 +0000 |
| Subject: | #22251 [Bgs]: wrong parameters in $_GET/$_PUT tables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33376@lists.php.net to get a copy of this message | ||
ID: 22251
User updated by: kr at bpm dot pl
Reported By: kr at bpm dot pl
Status: Bogus
Bug Type: *Programming Data Structures
Operating System: RH8.0
PHP Version: 4.2.3
New Comment:
I understand you Sniper :-) but you don't understand me.
Is this line correct? <input "checkbox" name="par" value="1">
Yes!!! It
is correct! I can call checkbox "par"
and I don't must call it "par[]". If "it is correct", the result of PHP
action ($_GET/$_PUT['par']) should be correct to!
When I call chackbox "par[]" it is simple crossing over the problem but
not founding real solution.
Previous Comments:
------------------------------------------------------------------------
[2003-02-17 11:47:16] sniper@php.net
Again, append that [] in the name:
<input "checkbox" name="par[]" value="1">
And no, we will not change this.
------------------------------------------------------------------------
[2003-02-17 11:33:36] kr at bpm dot pl
This path: file.php?par[]=1&par[]=2&par[]=3 is correct for my PHP.
Thanks.
But my opinion url: file.php?par=1&par=2&par=3 is correct too.
Submit form with e.g.
<input "checkbox" name="par" value="1">
<input "checkbox" name="par" value="2">
<input "checkbox" name="par" value="3">
------------------------------------------------------------------------
[2003-02-17 11:04:57] sniper@php.net
A correct url of file.php?par[]=1&par[]=2&par[]=3
would give you the expected result..
------------------------------------------------------------------------
[2003-02-17 09:56:44] kr at bpm dot pl
apache 2.0.40
web browser: file.php?par=1&par=2&par=3
echo count($_GET); // 1
echo $_GET["par"]; // 3(string) not table with values:1,2,3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22251&edit=1