Results 1 to 2 of 2
Thread: check box problems???
Dec 23, 2005, 03:36 #1
check box problems???
i had made a edit portion..
which retrieves all the data from the mysql.
everthing goes ok except the check box....
it should autocheck that checkbox button for which value has been inserted into mysql...i had made the 4 fields for the checkbox which stores the Null value defualt
My Question goes below
>>how to auto check the checkboxes with attribute "checked" after retrieving the data from the mysql
>>whether i should use the four fields for the four checkboxes or one field is sufficient
Got some idea??? then help me with neccessary illustrations
Dec 23, 2005, 05:40 #2
- Join Date
- Feb 2005
- Chester, Cheshire
- 0 Post(s)
- 0 Thread(s)
you would need some kind of test e.g.
$is_checked = ($mysql_field = 1) ? "checked" : "";