Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2003-10-13, 02:12 PM   #1
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:44 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc