homepage Welcome to WebmasterWorld Guest from 54.167.182.201
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Tell-a-friend script
Skinny

5+ Year Member



 
Msg#: 4112 posted 11:06 pm on Jun 25, 2005 (gmt 0)

Hi,

I know how the script works and everything.
I was wondering if anyone knew of a script that could tell the URL of that pg. and send that link to the friend.

i.e. you know those sites that have tons of pages and each one has a tell-a-friend link.

Is that a special script? If so where can I get one?

or do they have 500 different scripts for 500 pgs?

Skinny

 

Moby_Dim

10+ Year Member



 
Msg#: 4112 posted 12:37 pm on Jun 26, 2005 (gmt 0)

>>or do they have 500 different scripts for 500 pgs?

;) No, Skinny. The only script serves for all pages on a site to do this. I even do not know where you can get a script of this type - may be everywhere - in every place where scripts are available : this task is not very complex.

abbeyvet

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4112 posted 1:37 pm on Jun 26, 2005 (gmt 0)

Have a look around Hotscripts.com - there are several scripts there that will do this for you.

bennymack

5+ Year Member



 
Msg#: 4112 posted 3:39 pm on Jun 26, 2005 (gmt 0)

Wouldn't it be wiser to have one script that takes a GET param containing the URL of the link they'd like to send to their friend?

E.G.

http://www.example.com/cgi-bin/tellafriend.cgi?page=http://www.example.com/widgets/furry/blue/

And have that be the link they click to tell their friend. Then you can grab $url and put it in the email. Seems sane, unless I'm missing another requirement of the script..

vincevincevince

WebmasterWorld Senior Member vincevincevince us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4112 posted 3:54 pm on Jun 26, 2005 (gmt 0)

It's quite common to use the referer field.

volatilegx

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4112 posted 7:18 pm on Jun 28, 2005 (gmt 0)

Your script could access the $ENV{'HTTP_REFERER'} variable. That contains the URL that referred the visitor to the script.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved