Jump to content

get the user_name by $ip


DeathStar

Recommended Posts

Hi

i want to create a login page..

one of the futures i want to put in is that the script will automatically fill in your user name in a text box if you have registered.

then you just enter the password.

 

here's the part where i need help!

 

I want it to get the  user name from the ip if it exists in the database.

 

any help would be good!.

Link to comment
https://forums.phpfreaks.com/topic/37354-get-the-user_name-by-ip/
Share on other sites

hmm..    doesnt each pc have thier own  uniqe ip??

 

how would i do it with a cookie?

Not if they're behind a firewall/router/gateway/etc.  At best, you can uniquely identify visitors with session IDs (stored in a cookie, as artacus suggested).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.