PDA

View Full Version : Can't update the check boxes


jool
07-26-2008, 09:59 AM
Hi there,

I am using Dreamweaver to try to update a user profile. I am able to update all the text fields with the update page, but the checkboxes don't update. Whenever I click the update page the checkboxes just don't update.

The code I am using for each check box is:

<input <?php if (!(strcmp($row_rsupdate['mm'],"Y"))) {echo "checked=\"checked\"";} ?> <?php if ( isset($row_rsupdate['mm']) ) {echo "checked=\"checked\"";} ?> name="mm" type="checkbox" id="mm" value="Y">

Any help would be really appreciated. Thanks

Jool

davidj
07-27-2008, 09:37 AM
replace this ....

$row_rsupdate['mm'] with the $_POST your using to catch the value