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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.