Page 1 of 1

multiple fields

Posted: Sat Mar 29, 2008 7:29 pm
by jim_php
hello ... one more question....

i have one register form with check box choices
prefered: 1 male , 2 female, 3 trans, etc


one user select more one choice eg 1, 2, 3,
in the mysql row send prefered = 123 ?

how search or compare later in search form?

like a search where prefered = 1 or 2 or 3 or alll ?

Re: multiple fields

Posted: Sat Mar 29, 2008 9:51 pm
by Christopher
make the field name "preferred[]" and PHP will give you and array.