php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #142 (Again): BUT in ass. arrays passed in a FORM if the index contains spaces
Submitted: 1998-03-03 19:26 UTC Modified: 1998-04-24 12:03 UTC
From: merc at iternet dot it Assigned:
Status: Closed Package: Other
PHP Version: 3.0b2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: merc at iternet dot it
New email:
PHP Version: OS:

 

 [1998-03-03 19:26 UTC] merc at iternet dot it
Hi,

I was told that the bug was because of my, since 
I put "'" character in the [ ].
Sorry, but I really don't think so!

Why not?
Try this:

form.php3
--------
<HTML>
<BODY>
<FORM ACTION=try.php3 METHOD=POST>
  <INPUT TYPE=HIDDEN NAME="vettore[one two]"    VALUE=SOMETHING>

  <INPUT TYPE=HIDDEN NAME="vettore[three_four]" VALUE=SOMETHING>
  <INPUT TYPE=SUBMIT>
</FORM>

try.php3
---------
<?

  echo "VALORE: ". $vettore["one two"]." <BR>\n";
  echo "VALORE: ". $vettore["three_four"]." <BR>\n";

?>

RESULT:
VALORE: 
VALORE: SOMETHING 

So, there is a problem if the key of the array contains 
a space!

Sorry if I bothered you...! :-|

Merc.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-04-24 12:03 UTC] zeev
Fixed

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC