Referring URL

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
This is probably an embarrasingly basic question ...

I have a form which gets emailed via a CGI script. I'm trying to grab the
URL of the page on which users clicked this form.

This is part of the form's html -

<FORM action=" " method="post">
<INPUT type="hidden" name=".email_subject" value="Submit form">

I'm guessing I need a new line such as

<INPUT type="hidden" name="referringURL" value="xxxxx">

It's the "xxxxx" bit which I'm not sure how to fill in.



Re: Referring URL

BernieH wrote:
Quoted text here. Click to load it

If your host supports server-side includes (SSI), you can use the

<input type="hidden" name="referringURL" value="<!--#echo

The <!--#echo var="HTTP_REFERER"--> will be replaced with the referer
(if one was specified). On the default configuration of most servers,
you'll need to rename the form's HTML file so it has the extension
'.shtml' rather than '.html' to get this to work.

Safalra (Stephen Morley) /

Site Timeline