in reply to Redirect after refresh of page

Don't redirect to the same script? Whenever I have an action page that is reload-unsafe, I redirect to a non-action page after taking the action. That way, the only pages that are reloadable are the initial form and the non-action page. The actual action is never reloadable because the browser never stops on it.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re: Re: Redirect after refresh of page
by Anonymous Monk on May 24, 2004 at 13:20 UTC
    I am redirecting to a non action page. Sorry if it was not clear but the redirect is suppose to go back to the form page.
      Then, you're carrying around variables that are making your form reload-unsafe. *shrugs* Without seeing more of the code, there's not much more I can say.

      ------
      We are the carpenters and bricklayers of the Information Age.

      Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I shouldn't have to say this, but any code, unless otherwise stated, is untested