multiple fields

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jim_php
Forum Newbie
Posts: 16
Joined: Sat Mar 22, 2008 6:16 am

multiple fields

Post 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 ?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: multiple fields

Post by Christopher »

make the field name "preferred[]" and PHP will give you and array.
(#10850)
Post Reply