jool Posted July 26, 2008 Share Posted July 26, 2008 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 Link to comment https://forums.phpfreaks.com/topic/116702-updating-checkboxes-how/ Share on other sites More sharing options...
Barand Posted July 26, 2008 Share Posted July 26, 2008 try adding <?php var_dump($row_rsupdate['mm']) ?> after the input field to check the content of the field. Link to comment https://forums.phpfreaks.com/topic/116702-updating-checkboxes-how/#findComment-600043 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.