DMXzone Database Updater PHP Support Product Page

How to do a checkbox in an insert record

Reported 09 Nov 2013 03:18:53
1
has this problem
09 Nov 2013 03:18:53 Hope Tillman posted:
I don't see how to insert the values of a checkbox in an insert record. Possibly it is in the manual but I can't find it. Please point me in the right direction.
Thanks.

Replies

Replied 10 Nov 2013 09:19:12
10 Nov 2013 09:19:12 George Petrov replied:
Hi Hope,

well checkboxes are the same as just any other input fields, you just have to make sure you have entered a value to the checkbox input field.

usually you store them in a smallint database field, so a value="1". should do just fine.

Greetings,
George
Replied 09 Mar 2014 19:06:27
09 Mar 2014 19:06:27 Hope Tillman replied:
Hi,
I have the checkboxes working in the insert record, but in the edit record when I display the record to update it, No checkbox field is highlighted (even though it exists in the database).
And when I go to reselect the checkbox in the edit record, a "0" is what goes into the database rather than the selected checkbox number.
The file is
www.msoginc.org/surname_project/edittest.php

Reply to this topic