Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Muildimention Array from Form PHP ver 4.3.1

Status
Not open for further replies.

zick79

Technical User
May 19, 2003
40
CA
Hi

I have PHP Version 4.3.1

----My question is is it posible to read muildimention array from URL like this: [1][2]=Yes into the Php scrip?

---It doesn't read the $A[1][2] from url



//the @ operator is used to suppress a warning message
//if the variable hasn't been set
if(@$_GET['go'])
{
//echo $go;
echo $_GET['go'];
$A[1][2]="Yes";
echo $A[1][2];

}


if($_GET['A[1][2]']=="Yes")
{
echo $_GET['A[1][2]'];
echo tom;

//echo "Multidimensional arrays are working!";
//} else {
//echo "Multidimensional arrays are not working!";
//}
}
 
nope u cant. can u tell me why u want to read it like that? i may be able to provide a workaround...

Known is handfull, Unknown is worldfull
 
use 1 dimension array declaration for 1 data column or 1 data row from the html and then instead of using 2 dimension or more array indexes use names and single index

________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top