Forum Moderators: open

Message Too Old, No Replies

Referral in html.

I don't have a clue

         

adriantc

12:14 pm on Nov 5, 2005 (gmt 0)

10+ Year Member



I have an autosurf script and I want to make an referral page in html (the script already has a page index.php but I want to make a better one so it has more chances of getting members). So the user will have a page like this: www.domain.com/advpage.html?ref=xx. I have a join now link on the page... and I want every time a user enters the page with the adress www.domain.com/advpage.html?ref=xx to cut the?ref=xx and paste it into the join now link like this www.domain.com/signup.php?ref=1.
How can I do this?

10x,

encyclo

6:04 pm on Nov 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is not something that can be done with HTML alone, but seeing as you appear to have PHP available, you can use that to either append the referer string onto the link URL or to set a cookie in which you can store the referer value. The advantage with a cookie-based approach is that you have a reasonable chance of retaining that referer information for future visits by the user.

adriantc

2:17 pm on Nov 7, 2005 (gmt 0)

10+ Year Member



Thank you... I'll choose php since the main layout is in the index.php file. Of course it would have been better with html because I want to update this page often and it would have been easier that way. Oh well... a few clicks won't do so much harm ;)