get html referer php code example Example: php get refferal // To get what website the user came from: $_SERVER['HTTP_REFERER']