checkbox return false???
Posted on 2007-10-04
Need to get my head around checkboxes and the values they return, ive never really had to think about it but im writing a form script in php which places the all the post varibles into and array (in the order they are on the form) which is then pumped into my database, i have a few check boxes which show and hide various bits of the form and which when selected return true (1) this identifys that for example, customer has a differnet billing address.
My issues arrises when i need the check box to return false, i cant really get my head around what is going wrong with my script but i cant seem to work it out.
What do checkboxes return when they are not selected?
Also whilst on the topic what are the x and y values that are posted that pop up when i create this array??