FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
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'];
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.