Moby_Dim

msg:431492 | 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

msg:431493 | 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

msg:431494 | 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

msg:431495 | 3:54 pm on Jun 26, 2005 (gmt 0) |
It's quite common to use the referer field.
|
volatilegx

msg:431496 | 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.
|
|