How to modify headers sent?
How can I modify the headers that are sent from my site? Currently it is sending "must-revalidate" which causes problems for my users when filling out forms. If they make a mistake (or the form does not validate), they click BACk to complete the missing information, and they've lost everything in form.
For example, see:
1. Complete the fields, but leave the CAPTCHA image blank and SUBMIT the form.
2. You get an error message, indicating that you need to correctly identify the CAPTCHA image.
3. Click BACK.
4. You're returned to the form, but the fields are all blank.
I >THINK< I've tracked this down to the headers. Can anyone help?
the way i've done it before is i sent the data to the same page ($_SERVER['PHP_SELF']) and stored everything into session array, that way i could both check the input on the same page, and if something is wrong, put in user's values back into value="" field with the help of php. but, you might not want to change anything just yet - maybe somebody will give a simpler way to solve this.