CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Adding referer to email script

 



Aboo
New User

Mar 12, 2002, 10:01 PM

Post #1 of 2 (668 views)
Adding referer to email script Can't Post

I just broke down and bought a script that will accept email attachments in a form. I also need to get the referal page in the body of the email so that I know where it is coming from.

The script is attached, I am thinking that it should just be a matter of adding something like:

$referal_page=$ENV{'HTTP_REFERER'};

Am I off base here? Can't get it to work.

Thanks!

Derek
Attachments: attach_formmail_v3.ZIP (11.0 KB)


yapp
User

Mar 13, 2002, 5:41 AM

Post #2 of 2 (663 views)
Re: [Aboo] Adding referer to email script [In reply to] Can't Post

$ENV{'HTTP_REFERER'} might contain the data. So you can use it if present.

Enviroment variables might not be filled or used by some webservers. Also, if this value contains something, it is what the browser wants you to believe the referer is. There is no guarantee.

Yet Another Perl Programmer

_________________________________
~~> [url=http://www.codingdomain.com]www.codingdomain.com <~~
More then 3500 X-Forum [url=http://www.codingdomain.com/cgi-perl/downloads/x-forum]Downloads! Cool

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives