Re: Headers, JavaScript & PHP

From: Date: Thu, 11 Oct 2001 12:56:13 +0000
Subject: Re: Headers, JavaScript & PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70794@lists.php.net to get a copy of this message
Well, you could have a <input type="hidden"> on the other page with its value containing the URL so you can send people back. Or use the $HTTP_REFERER, to pick from what page people came so you can redirect it. Or on the 'last' page, declare some var and register on a session. If, on the other page (the 'don't back here'), this variable exists, you redirect your visitors. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "Kamil Nowicki" <hilarion@elfin.pl> wrote in message news:003b01c1524a$2990d660$d101a8c0@elfin... > > Hello > > Is there a way to make a page autosubmit (autoredirect > to another page with POSTing data) without staing in > browser history? (Something like JavaScript: > window.location.replace('url') but posting values.) > > The situation is: > Some other webserver has a form, which posts data to my > webserver. I have to put it into my database and redirect > the data (not by URL) back to the webserver which sent > it to me (to "Thank You" page). The problem with > autosubmiting form is that my webpage stays in browser > history, so going back from "Thank You" page gets > to my page again and autosubmits again. The problem with > window.location.replace('url') is that "Thank You" > page gets data passed by URL, which I do not want. > > Please help me, and Thank You. > > Kamil 'Hilarion' Nowicki >

« previous php.general (#70794) next »