Try: header("Location: $HTTP_REFERER); I guess... But you may need to pass along whatever data you want to keep, or use sessions so there's only a SESSION_ID to pass along. http://php.net/session_start -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Wee Chua <[EMAIL PROTECTED]> Newsgroups: php.db,php.general To: PHP (E-mail) <[EMAIL PROTECTED]>; Php3 (E-mail) <[EMAIL PROTECTED]>; Php-Db (E-mail) <[EMAIL PROTECTED]>; Php-Db-Help (E-mail) <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 2:39 PM Subject: Php Codes needed > Hi all, > I know how to forward a page with PHP, but what if the page I want to > 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 -- 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]