FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

php form getting users IP address

 


Possum
Hi

I have a form that the user fills in. Can I also detect the IP of that person...

I would like this info as I might be able to detect spam this way..

Cheers Possum..
Hogwarts
The IP of the user is always stored in the variable,
Code:
$_SERVER['REMOTE_ADDR']


Therefore,
Code:
$ip = $_SERVER['REMOTE_ADDR'];
Related topics

IP Address HTML CODE
users online, using php and text file
Need super simple method to send a form to an email address
PHP Form Question
How to get the IP address of People who Visit my Site

Service Temporarily Unavailable (Down again?)
IP Address Banning ( Not using .htaccess)
Ban Users Ip: 72.265.31.23
Php form.
PHP to detect users accessing site via proxy server

1 ip address = 1 soul
Purchasing a dedicated IP Address?
ip address
Frihost.com Ip Address
Filtering your IP Address from the Webilizer Stats
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.