If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: reload question

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Member #
    I'm currently working on a site that has a form that shows a text area on a contact form if our customer service has answered. Anyway, It is coming from a CGI script. When the user does have another question, the box shows up, they put in there message and hit submit which takes them to another page.

    The problem I am having is that when they push the back button, it is not reloading the page from the CGI script and showing the box again even though there isn't an answer to the question from customer service.

    I have tried a simple meta

    <META http-equiv="expires" content="0">

    But that isn't forcing the page to reload.

    So I guess I am asking if there is anway to force the page to reload upon submitting the form or from pushing the back forward button?

    Or maybe something in the CGI itself that forces the page to reload everytime it is hit.

    Thanks for the help

    I know this question has been asked a thousand times, but the answers so far haven't worked for me. That being said, thanks for taking time to answer


  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Cottage Grove, Minnesota
    Member #
    720 times
    I noticed that this has not yet been answered.

    You have little control over the back button ... that's the way it is.

    But, you do have control over cookies, and those could be used to
    solve your problem.

    The CGI script (which I'm assuming is a Perl script) sets or resets cookies
    when the decision is made to display the box.

    Now, on the page with the form, you use Javascripting to read the same
    cookie(s) and alter the box or text, depending on the cookie value.

    This whole transaction is fairly advanced for most web developers unless you
    know some Perl scripting and Javascripting using cookies.

    The other method would be to use PHP and sessions ... closing a session would
    not allow the page to display when you hit the back button. Online banks often
    use this method for security, so someone can't click the back button to see
    previous pages. They get a message that says "this page expired".

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 05:25 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: