View Single Post
Old 08-30-2010, 07:03 PM   #1 (permalink)
OpenBSD
The Visitor
Newcomer 
 
Join Date: Aug 2010
Posts: 2
Thanks: 0
OpenBSD is on a distinguished road
Default Multiple CheckBox

Hi,
I have Any Form For registering user. how to insert multiple rows in mysql for each user.

my form :
<input type = "text" name = "color" size = "10"><br>
<input type = "checkbox" name = colors[] value = "red">Red
<input type = "checkbox" name = colors[] value = "blue">Blue
<input type = "checkbox" name = colors[] value = "green">Green
<input type = "checkbox" name = colors[] value = "megenta">Megenta

how to insert multiple rows in mysql for each user.
MY mysql table is :
|id|name|lastname|color|date|desc

and how to show color list for each user .
example :
user 1 : red - blue
user 2 : blue - green . . etc
thanks.
OpenBSD is offline  
Reply With Quote