php array through url
php array through url
Out of context: Reply #1
- Started
- Last post
- 1 Response
- enobrev0
the url should look like this:
page.php?myarray[]=item1&myarray...
then on page.php, you'll have an array in your $_GET superglobal that is the equivalent to this:
$_GET['myarray'][0] = 'item1';
$_GET['myarray'][1] = 'item2';
$_GET['myarray'][2] = 'item3';