Even if you're not using an SQL database, it's still way more complicated
than it needs to be. Stick all the search parameters into a single array
(there's some way to name your HTML form so that it comes POSTed as an
array), then put a "foreach" loop walking through each value in the array,
and checking the variable that way.

found it (partly thanks to glen wagley)...


grab and array of all of the values from a submitted form, with...

        global $_POST;
        $form_array = $_POST;


you can also create custom arrays (i have read. haven't tested this yet) from parts of the form by putting brackets ("[]") in the <input> tags in the form, like...


<input type="text" id="color[]" name="color">


...and supposedly all of the inputs that have that same ID (i think that you can also do it in the name) will be in the same array




_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies

Reply via email to