yes but checkboxes are a bit tricky...
if the checkbox was checked, that variable will exist in the $POST
if the checkbox wasn't checked, that variable will NOT exist in $POST
so your code should (in pseudocode) have this effect
if isset($_POST['checkbox_name']) {
echo '<input type="checkbox" checked="checked">';
} else {
echo '<input type="checkbox">';
}
if you dump $POST into $SESSION somewhere to save it, then check isset($_SESSION['where_i_dumped_it']) instead