hi there!
i’m learning php, and this code snippet should dynamically load all the checkboxes, and mark those which were previously marked when the submit button was pressed. it loads perfectly, but after I set which checkboxes should be marked next time, the same page loads again, nothing marked. please help
[php]
"; } return($html); } $options = array("movies" => "Going to the movies", "music" => "Listening to music", "sport" => "Playing or watching sports", "travel" => "Traveling"); $html = generate_checkboxes("interests", $options, $interests); ?>