Forum Moderators: coopster

Message Too Old, No Replies

Retrieving URL for referral page script

         

Harry

8:08 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello. This is my first post. I'm using a free script from CJ Design that allows visitors to recommend a specific page on my Web site. Halfway to updating all the pages, I realized that it did not post the link in the form, forcing the visitor to copy paste it himself. It's useless for the user. I'm not a programmer and I don't know how to tell the script to grab the referral link and post it in a field.

I tried to install several other scripts since this morning, but although they all promise to be user friendly, none are. I am completely oblivious to they ask to fix. Weeks ago, I finally managed to make birdcast work, now it doesn't anymore. i find it too complicated for me.

Is there an easy way to do this for dummies without all the tech talk.

I really need help.

Thanks.

lorax

8:31 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld!

You can't get the link name but you can get the page the link was on (most of the time): <?=$HTTP_REFERRER?>.

Learn more here [us3.php.net]

Harry

8:42 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the help, but, really, it gets me nowhere. I don't understand how to use it in the script I have. I am not a programmer.

lorax

8:52 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hmmm...unfortunately you'll need to wait for someone who knows that script and can offer a more detailed response. Alternately you could hack at yourself. PHP isn't that hard to learn.

Harry

9:15 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks.

justageek

9:30 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want the page you are on then use $_SERVER["PHP_SELF"]

Harry

12:54 am on Sep 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok.

jatar_k

4:57 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you didn't already figure this one out you could try something like

<?
echo $_SERVER['HTTP_REFERER'];
?>

Put that in the spot on the page where you want to show the page they came from. Getting the referer in that manner isn't 100% reliable but it is the simple way if you don't know much php. Using some type of variable in the recommend page link is a more reliable solution but will take more programming.

and
Welcome to WebmasterWorld Harry.