I have tried to pass array data to the PHP script with request:
script.php?page=7&filter[key]=value
but didn't receive it in the script. Can I do so and if no - how can I pass array with HTTP GET?
You can definitely pass array from url and to get the value on php page,
and just out of curiosity i tried to and if you want to pass multiple array vals, you can use http_build_query |
|||
|
Yes you will get those value in an array on Just try to print the array value in the
|
||||
|
you have to just pass the data like this
and use
|
|||||||||||||
|
filter[]=value1&filter[]=value2
and see what you get on PHP side.. ? – Thrustmaster Sep 28 '12 at 11:23