2009-07-01, 07:39 PM
Basically I need a form where you can select multiple values and then those values will be used to select from the database.
And what I want the resulting query to be, if you chose, say, X and Y:
That sort of thing... looked on Google and found sod all (apart from finding out to use []), so wondering if anyone here can help me
<input name="name[]" type="checkbox" value="X" checked="checked" />
<input name="name[]" type="checkbox" value="Y" checked="checked" />
<input name="name[]" type="checkbox" value="Z" checked="checked" />
And what I want the resulting query to be, if you chose, say, X and Y:
SELECT * FROM `table` WHERE `field` IN ('X','Y');
That sort of thing... looked on Google and found sod all (apart from finding out to use []), so wondering if anyone here can help me