Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 03:13:25 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Formmail - send ip number of sender  (Read 186 times)
magnusingi
Newbie
*
Offline Offline

Posts: 5


« on: March 11, 2008, 02:56:51 PM »

Hi,
I am using formmail script called NMS FormMail .  It works fine, but I am wandering if it is possible to have it send also the IP number of those that use it to send me posts.
Regards, Magnús
Logged
RichardRay
Support
Intergalactic Cowboy
*****
Offline Offline

Posts: 72



« Reply #1 on: May 04, 2008, 11:53:04 PM »

You would need to setup a line similar to this in the Perl script:

$userip= $ENV{REMOTE_ADDR};

You would then need to have the $userip variable formatted into the email that is sent out.  Here are links to information on using environment variables in Perl:

http://www.pageresource.com/cgirec/ptut19.htm
http://www.4webhelp.net/tutorials/cgi/env_vars.php
Logged

Lunarpages Web Hosting
Lunarpages Affiliate Program
FAQs | Tutorials | LP Glossary

Telephone: 1-714-521-8150
24 hour Network Status Line: 1-562-697-8106
Fax: 1-714-521-8195
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM