Checkbox value Null ?
I have a PHP/Mysql Database and I'm trying to populate a field with a checkbox and I am having a difficult time getting a "0" in the field when the checkbox is initially unchecked. It always comes up as NULL instead.
What is the secret???
The field in the database is currently set to tinyint but I would be happy to change for something that works.
and the checkbox code is:
<input name="online" type="checkbox" id="online" value="1" checked="checked" />
What do I need to change to fix this?
Dave
Edited 1 time(s). Last edit at 04/04/2008 11:30PM by David Schenk.
Subject
Written By
Posted
Checkbox value Null ?
April 04, 2008 11:29PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.