php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1366 Problems with multidimensional arrays
Submitted: 1999-05-01 04:00 UTC Modified: 1999-05-11 08:46 UTC
From: winfried dot bantel at usa dot net Assigned:
Status: Closed Package: Other
PHP Version: 3.0.7 OS: RedHat 5.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: winfried dot bantel at usa dot net
New email:
PHP Version: OS:

 

 [1999-05-01 04:00 UTC] winfried dot bantel at usa dot net
Code like
<?
$data[1][1]=6;
$data[1][2]=7;
$data[2][1]=8;
$data[2][2]=10;
while (liste($key,$val)=each($data))
	echo "<BR> $key"
?>

produces output like
1][1
1][2
2][1
2][2

!?!?!?!?

Another problem concerning multidimensional arrays:

I send HTTP-Formdata in an array like

<INPUT TYPE=TEXT NAME='data[name]'>
<INPUT TYPE=TEXT NAME='data[street]'>
<INPUT TYPE=TEXT NAME='data[city]'>

and get all data in my array $data. How can i use multiple-select-lists?
<SELECT NAME='data[hobbies][]'>
<OPTION VALUE='computer'>
...
</SELECT>
does not seem to work. I don't find any doc about multidimensional arrays.

Thank You. (You may answer in english or in german language).


Winfried Bantel

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-11 08:46 UTC] sas at cvs dot php dot net
Multidimensional arrays are not supported as GET/POST input parameters.

Running your script with the upcoming PHP 3.0.8 did not yield the mentioned behaviour.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 29 08:01:30 2024 UTC