Jump to content


Photo

Capturing visitors IP Address fro MySQL


  • Please log in to reply
1 reply to this topic

#1 JasonORDSW

JasonORDSW
  • Members
  • Pip
  • Newbie
  • 7 posts
  • LocationChicago, IL

Posted 17 July 2003 - 03:59 AM

I have a form field that registers a person, and then post the information to a MySQL database.

Is there a way to CAPTURE the persons IP Address and post that to a field in the database also?

Thanks!

Jason

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 17 July 2003 - 05:01 AM

$_SERVER[REMOTE_ADDR]
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users