Page 1 of 1

PHP & MySQL - inserting checkbox value into database

Posted: Tue Jul 25, 2006 12:51 pm
by alexislalas
hello,

i have 31 checkboxes in my registry form. how do i insert the value into the database?

thanks

Posted: Tue Jul 25, 2006 12:54 pm
by nickman013
Most simple tutorial is right here:

:arrow: http://www.freewebmasterhelp.com/tutorials/phpmysql/1

Posted: Tue Jul 25, 2006 1:04 pm
by feyd
Are you talking about the SQL needed, table structure, or the PHP needed to handle the data?

Posted: Tue Jul 25, 2006 1:24 pm
by fine
it is nothing special to deal with checkbox (1, checked, 0 uncheck).

do it like dealing with other php form problems

Posted: Tue Jul 25, 2006 3:02 pm
by alexislalas
what i need is the php to handle the data. how do i insert in the database the 0 or 1, the Y or N. thats the part i dont know.

Posted: Tue Jul 25, 2006 3:21 pm
by RobertGonzalez
This depends on your DB field types. Are the fields Tinyint (or Int) or are they Enum("Y","N")?