View Single Post
Old 01-10-2009, 07:32 PM   #4 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

basically what im trying to do is

lets say have on a form these checkboxes
the name i've specified is the name of the checkbox that i've set for now (maybe in this case people normaly just call them option[] instead of the way i've done it (i dontk now :) ) and the default value for the checkbox i've specified.
Code:
[  ]  checkbox 1 [name=opt1], default value = "option1"
[  ]  checkbox 2[name=opt2], default value = "option2"
[  ]  checkbox 3[name=opt3], default value = "option3"
[  ]  checkbox 4[name=opt4], default value = "option4"
[  ]  checkbox 5[name=opt5], default value = "option5"
if a user selects more than one checkbox how do create a table for this and insert its values on one row?

and lets say there are more fields asking for the persons name , address etc... and this person selected more than one checkbox how would i insert the values selected all on one row or some form so that it can relate to that one persons selection??

what one person told me was to insert the values selected all seperated by a comma into a column then use the explode to seperate them when taking them out.

let me know what i can do, when it comes to things like this i get stuck. i want to do it the right way not the half ass way as i have been doign it for a long time.
__________________
no signature set
sarmenhb is offline  
Reply With Quote