23364 Posts in 18142 Topics by 2862 members
|Go to End|
4 May 2009 at 12:15pm
Couple of questions.
1.) Is there a way to capture a visitors IPAddress ?
2.) Can I store the address in a log file?
3.) Is there a way to create a unique table in the database that stores more information that the user's login information. Such as name, address, email, etc.?
4 May 2009 at 6:09pm
About the visitors IPAddress, dunno if SS has a special function, but look at the content of $_SERVER, such as
$ip = $_SERVER['REMOTE_ADDR'];
this can be manipulated though, have a look also at 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'HTTP_VIA', 'HTTP_X_COMING_FROM', 'HTTP_COMING_FROM', always as fields of $_SERVER.
4 May 2009 at 10:19pm
Yeah, I'll give that a whirl.
I'll create a field in the form and pass it the value of $_SERVER['REMOTE_ADDR']
Let's see how that works.
Thanks for the hint. Wasn't thinking clearly and thinking that everything had to be SS specific.
|Go to Top|