PHP and mySQL form processing

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
tavo
Forum Newbie
Posts: 1
Joined: Mon Oct 11, 2010 9:13 am

PHP and mySQL form processing

Post by tavo »

i have this form:

What days would you like: <br />
<input type="checkbox" name="Day" value="Lunes"> Lunes
<input type="checkbox" name="Day" value="Martes">Martes
<input type="checkbox" name="Day" value="Miercoles">Miercoles
<input type="checkbox" name="Day" value="Jueves">Jueves
<input type="checkbox" name="Day" value="Viernes">Viernes
<input type="checkbox" name="Day" value="Sabado">Sabado
<input type="checkbox" name="Day" value="Domingo">Domingo


and it needs to go on a database as 0 if the box is unchecked or 1 if its checked... when i submit the form what are the values that i receive and how can i process the values into 0 and 1?

thx,
tavo
Post Reply