I'm using checkboxes to search a mysql database I have created. As the checkboxes all use the same name, when I use $_GET, it only gets the last value in the URL.
For example: http://www.website.com/search.php?features=Textures&features=Items&style=Realistic&submit=search
would only return Items, and would override Textures.
Is there a way to store both the values, and then to use these values to search my database?
featurethen you will only get the last one set in $_POST, and you'd have to process the raw input yourself. If you don't mind the parameter name beingfeature[]then $_POST will contain an array calledfeaturecontaining all the valuesphp://inputand building the request data yourself. php.net/manual/en/wrappers.php.php#wrappers.php.input