losse
06-09-2006, 11:32 PM
Hi there
Say you have a form with 3 options as follows:
1. Apples ()
2. Oranges ()
3. Pears ()
and you want the user to check one of the three options. For example, if apples is checked off, and then they check oranges, apples unchecks automatically and oranges appears checked off. In HTML this is a Radio button list...
How would you set up the table in the database to accept the option chosen?
Would it be ENUM ('Yes','No') and then ask PHP to put YES on the chosen field in the DB and NO in the 2 others?
Thanks
Say you have a form with 3 options as follows:
1. Apples ()
2. Oranges ()
3. Pears ()
and you want the user to check one of the three options. For example, if apples is checked off, and then they check oranges, apples unchecks automatically and oranges appears checked off. In HTML this is a Radio button list...
How would you set up the table in the database to accept the option chosen?
Would it be ENUM ('Yes','No') and then ask PHP to put YES on the chosen field in the DB and NO in the 2 others?
Thanks