Thanks for that.
Unfortunately, didn't help.
But! Investigation showed that what I needed was the missing HTML tag for a checkbox.
<Input Type='Checkbox' Name='varname' Value='returnval' CHECKED>
With the above, if the checkbox is ticked it will return returnval. If the checkbox is not ticked, it returns nothing (or a NULL).
returnval can be any value. The CHECKED part states whether the box is ticked by default. Can be UNCHECKED.
So, if the variable I'm using as a persistant TRUE/FALSE type object is called $showdat,
$showdat="CHECKED"; 'value can come from a database
echo "<Input Type='Checkbox' Name='showdat' Value='CHECKED' $showdat>";
This will make the default $showdat (useful when pulling from a database). The returned variable, $showdat will then have a value of CHECKED if it was, or NULL if it wasn't. A value of CHECKED or UNCHECKED is then written back to the database.
Note: When checking in a If...Then statement, I use ($showdat=="CHECKED") or ($showdat!="CHECKED") rather than checking for NULL.
Cheers,
Tim