[wellylug] cgi script/html question

jfouhy at paradise.net.nz jfouhy at paradise.net.nz
Mon Sep 6 14:23:23 NZST 2004


Quoting Mark Signal <mark at databackup.co.nz>:

> I'm googling myself around in circles here.....
> 
> What I can't do is figure out to capture the originating web page
> address as a variable so that I can replace the address in the JavaScript 
> with the variable of the origination page.

Can you just look at $HTTP_REFERER ?

If you make a CGI script:

------------------------------------------
#!/bin/sh
echo "Content-type: text/html"
echo ""
echo "<pre>"
env
------------------------------------------

and then make an HTML page that links to it, you'll be able to see what
variables your web server is setting.

-- 
John.




More information about the wellylug mailing list