Thats it basically. I have a page with checkboxes, if I check a box when I refresh the page the box is unchecked. How do I stop this happening?
you sure you mean refresh? If you mean submit then you just check to see if the checkbox was checked and if so check it!
<input type="checkbox" name="check" value="checked" <?php if($_POST['check'] == 'checked'): ?>checked="checked"<?php endif; ?> />
This topic is now closed. New replies are no longer allowed.