http://localhost/index.php?val_one=oneval2=2
on index.php
print_r($_GET) will show the array
echo val l=.$_GET['val_one'];
echo val 2=.$_GET['val2'];
its CAse senSitivE
you can also do a
foreach($_GET as $k = $v)
{
echo $k.=.$v;
}
Sukanto Kho wrote:
Hi,
How to pass var array to other
You can pass arrays via GET using the syntax:
http://localhost/index.php?val[1]=oneval[2]=2...val[key]=value
Andy
Pete M wrote:
http://localhost/index.php?val_one=oneval2=2
on index.php
print_r($_GET) will show the array
echo val l=.$_GET['val_one'];
echo val 2=.$_GET['val2'];
its CAse