Hello,

I would like to reload a page without adding another page in the browsers history. When I use form action = $_SERVER['PHP_SELF'] (or no form action), the new page has the same URL (if using POST) but the browser is actually forwarded to a new window. (Hitting the back button goes back to the page I was just at with the same URL).

I was using JavaScript (location.replace) with success before, but that was with cookies. I need to be able to truly reload the page, and pass the variables from the form.

I have IE 5.5 SP3 & pHP 4.3.4.

Any ideas?

Thanks

    Why do you want to mess with the browser history?
    If it is to prevent double posting: You can also check in the database wether a record exists, or set a session variable which keeps track of submitted forms?

    J

      I just don't like creating a useless trail of browser pages. If the user clicks the Back button, the previous page is worthless, and confusing.

        Write a Reply...