Results 1 to 2 of 2

Thread: How to modify headers sent?

  1. #1

    Default 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:
    http://www.keycontent.org/tiki-directory_add_site.php

    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?

    Tx

  2. #2
    Join Date
    Mar 2006
    Posts
    100

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •