Michdd Posted November 4, 2008 Share Posted November 4, 2008 How would I get the IP of someone submitting a form on my site, so that I can store it in the database. Link to comment https://forums.phpfreaks.com/topic/131378-getting-ip-of-a-user-on-my-site/ Share on other sites More sharing options...
F1Fan Posted November 4, 2008 Share Posted November 4, 2008 $_SERVER['REMOTE_ADDR'] Link to comment https://forums.phpfreaks.com/topic/131378-getting-ip-of-a-user-on-my-site/#findComment-682295 Share on other sites More sharing options...
Michdd Posted November 4, 2008 Author Share Posted November 4, 2008 So that will output the IP? In other words I could just do this: $ip = $_SERVER['REMOTE_ADDR'] then insert $ip into my database? Link to comment https://forums.phpfreaks.com/topic/131378-getting-ip-of-a-user-on-my-site/#findComment-682297 Share on other sites More sharing options...
Stryves Posted November 4, 2008 Share Posted November 4, 2008 That's correct. Link to comment https://forums.phpfreaks.com/topic/131378-getting-ip-of-a-user-on-my-site/#findComment-682302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.