title: Getting url where redirection is coming from
body: <p>i have three pages page1.php, page2.php and page3.php. Page1 and page2 redirect to page3. Depending on where the redirection is coming from I want it to display something. How do i get where the redirection is coming from.
  Thank you in advance.</p>