How do I make checkboxes stay checked?

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?

Only if you somehow save the state upon checking a checkbox, you can do this. With JavaScript saving the state to a cookie, for example.

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; ?> />