shankari
07-21-2007, 07:10 AM
pls help me
In Php i've a form which has multiple checkboxes. when the form loads (i.e) when we open the form in certain checkboxes checked value should be true. Those values which has to be checked will come from the database. when i uncheck the checkboxes it has to be unchecked but my prob is it stays checked even if i uncheck
e.g. i've three checkboxes with options 1) singing 2)drawing 3) painting
when the form loads if singing id is 1 in database checked value of singing shld be true similarly for other options. when i uncheck singing checked value shld become false.
In Php i've a form which has multiple checkboxes. when the form loads (i.e) when we open the form in certain checkboxes checked value should be true. Those values which has to be checked will come from the database. when i uncheck the checkboxes it has to be unchecked but my prob is it stays checked even if i uncheck
e.g. i've three checkboxes with options 1) singing 2)drawing 3) painting
when the form loads if singing id is 1 in database checked value of singing shld be true similarly for other options. when i uncheck singing checked value shld become false.