I seem to keep having this problem, and I’m not sure why.
For my forms, I do all the information on one page. That means the email script of update/insert script or whatever, is generally at the top, and I have this this distinguish what the page should show:
[code=php]
if (‘POST’ == $_SERVER[‘REQUEST_METHOD’]){
echo ‘Do Insert’;
}else{
echo ‘Show Form’;
}
I think this is pretty standard, but I’m not sure if this is causing the problem or not. The problem comes after the form has been submitted.
One one form, it does validation, and if everything checks out, is submits the information and tells the user it was successfully submitted. If there is an error, it tells you where the error was, you can hit the back button, and fix the error. All the information you previously entered is still in the form. There are about 20 questions for this form.
With a new form I am creating, if there is an error and you hit the back button, the form is not empty. For some reason it doesn’t save all the information.
Why does it do this? Does anyone know? Is this a HTML problem or a PHP problem?