Thread: Script Help
View Single Post
Old 2003-10-13, 02:12 PM   #9
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
If you are just using ssi, you don't need any other script. If you put <!--#echo var="QUERY_STRING"--> on your page, then the server will replace <!--#echo var="QUERY_STRING"--> with whatever was appended to the original URL.

To see it in action go to this page and view the source code:
http://www.pp5sex.com/emma/partner1.shtml

Look at the URL that "click here to continue" sends you to, it is "partner2.shtml?"

Now go to the same URL with an affiliate code added such as :
http://www.pp5sex.com/emma/partner1.shtml?12345

You will see that the affiliate code has been added to the "click here to continue" link (in this case "partner2.shtml?12345"). it will work with anything you put after the question mark (try it if you like).

Now look again at the source code, what your browser saw was not what I wrote, On my hard drive the link in the source code is :
<a href="partner2.shtml?<!--#echo var="QUERY_STRING"-->">Click Here to continue</a> but my server replaced echo var="QUERY_STRING"--> with the affiliate code.

This does not need any CGI, the entire process is done by SSI, which you say you already have on your server (although it may have to be "switched on" before it works, for security reasons most hosts do not activate SSI until you ask them to, or you do it yourself by telnet)

Feel free to have a look through the tour I gave as an example, you will notice that it keeps passing the referrer code across every page of the tour before inserting it into the AVS form.
ecchi is offline   Reply With Quote