When you tell them they had an error, do you use something like <a href="form.php">Go back to form</a>????
If you do that, the form will be reset. You could juse javascript to go back to the form, and everything they filled out (unless it was a password) would still be set
<a href="javascript:history.back()">Go back to form</a>
But for learning experience, if you want a checkbox to stay check when they go back, you set it to be checked.
so what you'd do, run an if statement to see if that checkbox had a value, if it did, set it to checked
if ($name) {
echo "<input type=checkbox name=name checked>\n";
} else {
echo "<input type=checkbox name=name>\n";
}
yeah, I know you'd never have a checkbox for someone to select whether they had a name or not, but it's just an example. 😉
Cgraz