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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can definitely pass array from url and to get the value on php page,
and just out of curiosity i tried to
$_GET['filter']['value']and it too worked !!!and if you want to pass multiple array vals, you can use http_build_query