Jump to content


Remembering previous URL?

  • Please log in to reply
2 replies to this topic

#1 bilis_money

  • Members
  • PipPipPip
  • Advanced Member
  • 621 posts

Posted 02 August 2006 - 07:05 AM


Let say i have two pages, page1.php and page2.php.

now i would like to open page1.php then page1.php consist of a
codes that will redirect to page2.php,

now what appropriate codes that will remember the previous page1.php and get
it and display that previous page as hyperlink?

thank you very much in advance.

#2 mastermike707

  • Members
  • PipPip
  • Member
  • 23 posts

Posted 02 August 2006 - 07:13 AM

Ok, what I think you want to know is what variable is the refering url:


#3 ronverdonk

  • Members
  • PipPipPip
  • Advanced Member
  • 277 posts
  • LocationNetherlands

Posted 02 August 2006 - 10:18 AM

Caution! The $_SERVER["REFERER"] is not always set on some systems!

Ronald  ;D
RTFM is an almost extinct art form, it should be subsidized.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users