echoing checkbox value
I have a form, and if it is not sent, the form is echoed. here is part of my code that is being echoed:
echo "...<input type='checkbox' name='noIdentity' id='noIdentity' value='noIdentity'
<?php
if(isset($_POST[errors]) && isset($_POST[noIdentity])) {
echo 'checked=checked';
}
?>..."
The only problem is, if the value is checked, when i come back to it with the rest of the form errors, it is not checked. why isn't it being checked?
