bullbreed Posted February 18, 2010 Share Posted February 18, 2010 Hello When I am editing a product I have some of the data stored as an serialized array in the database. Can I use an echo statement like this value="<?php echo $row["rowname"]; ?>" to make sure checkboxes are already checked relating to the data in the database? If not, how do I do this? Link to comment https://forums.phpfreaks.com/topic/192528-echo-data-in-checkboxes/ Share on other sites More sharing options...
GingerRobot Posted February 18, 2010 Share Posted February 18, 2010 To make a checkbox checked, you need to set the attribute checked to "checked": <input type="checkbox" checked="checked" /> I wrote a tutorial on working with checkboxes which can be found here: http://www.phpfreaks.com/tutorial/working-with-checkboxes-and-a-database Link to comment https://forums.phpfreaks.com/topic/192528-echo-data-in-checkboxes/#findComment-1014384 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.