Jump to content

This topic is 7455 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

When a user submits a form I'd like to capture their IP address. I'm using:

$webEvent=new FX($FMAddress, $FMPort);

$webEvent -> setDBUserPass('User' , $FMPassword);

$webEvent -> setDBData('CabiNet.fp7' , 'WebEvents');

$webEvent -> AddDBParam('UserEmail' , $userEmail);

$webEvent -> AddDBParam('IP', getHostByName($REMOTE_ADDR));

$webEvent -> AddDBParam('EventDescription', 'Password sent to user');

$webEvent_OK = $webEvent -> FMNew();

I thought the php command getHostByName($REMOTE_ADDR) would do the trick, but this keeps giving me the IP of the machine that is serving the database.

Any ideas?

Thanks,

Dan

This topic is 7455 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.