Greetings,
I am having an issue with script 8.9 and 8.10 PHP for the web 4th edition.
The form is not completing the registration, The information is in the form and I can print it out however I still get the error message and the form does not process. I have comared the code with the example code for the book and I am at a loss. I am thinking I am going to go do something else for a while nd come back to it. I am certain it must be me but I'll be hanged if I can figure it out.
This is where I think I have an error that I can't seem to determine:
// qualify print statement and print
// if there were not any problems
if (!problem) {
// opening no problem curly
// print no problem statement
echo '<p> Well if looks like you can fill out a form without too many errors not bad</p>'."\n";
// clear posted values
$POST = array();
// closing no problem curly
} else {
// opening problem curly
echo '<p class="error">What a simpleton you can not even complete a simple form go back and try again.</p>'."\n";
}
// closing problem curly
// end qualify print
I notice that when I submit the information remains available. Isn't it supposed to clear as it is passed? I been staring at it for to long and need to take a break. Hopefully you can point me in the right direction.