referer_uri

Definition

referer_uri()
includes/bootstrap.inc, line 510

Description

Return the URI of the referring page.

Code

<?php
function referer_uri() {
  if (isset($_SERVER['HTTP_REFERER'])) {
    return $_SERVER['HTTP_REFERER'];
  }
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.