Page 1 of 1

recording the IP address of a user

PostPosted: 06. September 2021 15:13
by MikeSiencyn
Hi folks
I'm sure this question is very basic but I guess things are only easy if you know them.
I have set up a database for my wife's vintage shop and I want to record the IP address of a site user so that when they click "buy now" I can enter the IP address of their
system into my MySQL database.
I would be very grateful if someone could help me with this please.
Many thanks
All the best
Mike

Re: recording the IP address of a user

PostPosted: 06. September 2021 15:29
by Nobbie
$_SERVER["REMOTE_ADDR"]

Re: recording the IP address of a user

PostPosted: 06. September 2021 16:09
by MikeSiencyn
Thanks Nobbie