
May 30th, 2000, 06:19 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
I have a PHP-MySQL setup, where people can register them selves to a database, this involves some checkboxes. Thing is when people later wants to edit their data, they are presented with a form, where their current information is allready filled in, ready to be edited, -BUT NOT THE CHECKBOXES!!
All the textboxes works fine, there I set the value attribute to the corresponding value in the database. The point is: when I have a value of true/yes, (as opposed to false/no) in the database, I want the checkboxes in the form to be checked. How do I do this? When the forms are used for outputting data, the state of the checkbox is not related to the value of the checkbox, this is only true for input of data.
|