I have to pass either an ON or OFF value in php. Is a single checkbox to check whether a value is on or off the simplest method? I have:
<input type="checkbox" name="highlight">
You can do like this:
$cheeked = isset($_POST['highlight'])?1:0;
$cheeked will be 1 if checked and 0 if not.