recording the IP address of a user

Problems with the Windows version of XAMPP, questions, comments, and anything related.

recording the IP address of a user

Postby MikeSiencyn » 06. September 2021 15:13

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
MikeSiencyn
 
Posts: 24
Joined: 02. February 2021 15:41
XAMPP version: 3.2.4
Operating System: Windows10

Re: recording the IP address of a user

Postby Nobbie » 06. September 2021 15:29

$_SERVER["REMOTE_ADDR"]
Nobbie
 
Posts: 13214
Joined: 09. March 2008 13:04

Re: recording the IP address of a user

Postby MikeSiencyn » 06. September 2021 16:09

Thanks Nobbie
MikeSiencyn
 
Posts: 24
Joined: 02. February 2021 15:41
XAMPP version: 3.2.4
Operating System: Windows10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 170 guests