PDA

View Full Version : URL Variable?


Mr.O
06-26-2001, 09:18 PM
Hi, Everyone...I've been searching for a way to set my outgoing url to a variable so I don't have to have the code on every link, but I can't find it on any sites. Does anybody know how to set this if it is possible? I think it would save on file size....thanks guys!

MrNice
06-26-2001, 09:33 PM
You could use java and simply execute a function which brings you to the out script either by using location.href or window.open.

The problem with this is that you will loose the referer header...

I'm having almost the same problem myself... the only thing I can think of really is to open an existing page on your own server when calling the java script function. Which will redirect you to the out-script using meta refresh.

But this will give the problem that if a trade check the refrerer pages he might think you are cheating by redirecting...

Mr.O
06-26-2001, 09:44 PM
I remember seeing it on another sites webmaster page , but now I can't seem to find it again. I remember he set his main url as a variable and would add it to what ever else he wanted to the link and they would join together as one link....