My website is fully run in PHP, very little html, JS.
I allow people to have up to 3 accounts, which I have a IP feature that checks for matches to see who has how many.
However I would like when they go to the register page it say something like:
(Your IP Address Logged: 100.118.50.62)
so then when they try to create an account, it'd check the database and count the number of accounts that match that IP. So if 3 or more comes up, it will cancel the register.
Any ideas on how to do this? I figure Ajax could do it easily and better, but I know 0 things about ajax.