October 5, 200421 yr 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
Create an account or sign in to comment