On Thu, 20 Sep 2001 15:49:25 -0400, Wee Chua wrote:
>Hi all,
>I know how to forward a page with PHP, but what if the page I want
>forward is the previous page or last page. In javascript, the code
>is like
>javascript:historygo(-1). The reason why I want to go back to
>previous page
>is because I don't want to lose any information on previous page.
>Can anyone
>help? Thank you.
>Calvin Chua

you could do:
header("Location: $HTTP_REFERER");

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to