English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to use it to complete an email to a friend page on a site.

2007-01-25 11:21:06 · 1 answers · asked by mabossman 2 in Computers & Internet Programming & Design

How bout using cold fussion or javascript

2007-01-25 11:33:24 · update #1

1 answers

You can't get the referrer using HTML. You can get it using JavaScript - document.referrer (you need to check and make sure it exists and is not empty first though - not all hits will have a referrer, for various reasons).

You can also get it using pretty much any server-side language:

In PHP: $_SERVER['HTTP_REFERER'];

In ASP.NET: Request.UrlReferrer.ToString()

In ColdFusion: CGI.HTTP_REFERER

2007-01-25 11:32:33 · answer #1 · answered by Rex M 6 · 0 0

fedest.com, questions and answers