frist44 Posted February 26, 2009 Share Posted February 26, 2009 How do I get checkboxes to display the same state they were before the POST? Link to comment https://forums.phpfreaks.com/topic/147059-checkbox-persistence/ Share on other sites More sharing options...
MadTechie Posted February 26, 2009 Share Posted February 26, 2009 untested but try this <input type="checkbox" name="test" <?php echo (isset($_POST['test'])?"checked":""; ?>> break down.. if its set then add the string "checked" Link to comment https://forums.phpfreaks.com/topic/147059-checkbox-persistence/#findComment-772044 Share on other sites More sharing options...
frist44 Posted February 26, 2009 Author Share Posted February 26, 2009 worked perfect. Thanks. Link to comment https://forums.phpfreaks.com/topic/147059-checkbox-persistence/#findComment-772050 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.