in reply to http referer

As users have to have JavaScript in order to use your "email to a friend" I think you should use JavaScript to figure out the location as well.

if you get the

document.location.href
using javascript before, that will work.
myReferrer = document.location.href; myScriptAndReferrer = 'raf.pl?' + myReferrer; // and then later document.write your link document.write('<A HREF="javascript:window.open(' + myScriptAndReferre +r
etc etc

But seriously. What happens to users without JavaScript?



($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re: Re: http referer
by Anonymous Monk on Feb 04, 2004 at 05:14 UTC
    Thanks, I think that will work great..a bit less editing than the url_param method. I had the idea but I don't know if it's possible or just stupid, but thought I would toss it out there.

    Is it possible to call a script using SSI that all it does it gather what page loaded it? Then somehow pass that information to my form without using JS? For example, the SSI tells you that the page it's on is www.mypage.com/test.html and somehow pass that as a hidden field inside the form?

A reply falls below the community's threshold of quality. You may see it by logging in.