Checkboxes, forms and mysql question?
Posted: Sat Sep 21, 2002 2:56 pm
How do i get a "1" passed to a table by using a variables for each column that is a checkbox?
for example:
."<input type=\"checkbox\" name=\"$oedit\" value=\"1\"><b>"._OEDIT."</b>"._OEDITD."<br>"
The check boxes appear fine in the form but when tested, nothing shows up in the table when they are 'checked'. Also some more background info:
The table columns that are used for the checkboxes are all 'tinyint' notnull and have '0's in them by default. When the checkboxes are checked, they are supposed to insert a 1 into the corresponding column. Any suggestions would be appreciated!
for example:
."<input type=\"checkbox\" name=\"$oedit\" value=\"1\"><b>"._OEDIT."</b>"._OEDITD."<br>"
The check boxes appear fine in the form but when tested, nothing shows up in the table when they are 'checked'. Also some more background info:
The table columns that are used for the checkboxes are all 'tinyint' notnull and have '0's in them by default. When the checkboxes are checked, they are supposed to insert a 1 into the corresponding column. Any suggestions would be appreciated!