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? Quote 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" Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/147059-checkbox-persistence/#findComment-772050 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.