How could I pass an array with PHP by GET method?
Thanks
In your query string (or POST data, it doesn't really matter), you should end up with this:
http://example.com/myscript.php?foo[]=1&foo[]=2&foo[]=3
PHP will parse that into $_GET["foo"], and it will be an array with the members 1, 2, and 3. How you mangle that from a form is up to you. In the past, I've named different checkboxes "check[]", for example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With