Page 1 of 1

PHP and mySQL form processing

Posted: Mon Oct 11, 2010 9:21 am
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