So, on my form I have two input methods, a text field and a checkbox.
How would I use PHP to test if the checkbox has been checked or not? Perhaps using $_POST?
I want to check if the checkbox is checked, and if it is, set a boolean to true. I have no problems setting variables, but I can’t seem to figure out how to get the input from the checkbox….
So, how would I get the input from a checkbox?
Have a look here: http://www.homeandlearn.co.uk/php/php4p11.html
When checkboxes aren’t selected, they effectively have no value, so you test it with
isset.