Link to home
Start Free TrialLog in
Avatar of dereksheahan
dereksheahan

asked on

Determining user IP address and using it

Hi All,
I wonder is it possible to determine the user's IP address and use it to make the default value for a drop-down menu approiate to it. For example, if the users IP address indicates that the user is from greater London, then have the "Greater London" appear as the default value in the drop-down menu. Is this a very complicated procedure??
Thanks,
Derek
SOLUTION
Avatar of m1tk4
m1tk4
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wildzero
wildzero

btw it's free =)
Also you can use that csv with this code

http://www.php.net/source.php?url=/include/ip-to-country.inc

instead of doing a mysql database
SOLUTION
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dereksheahan

ASKER

Thanks guys,
Yeah I wanted it to change as for where the user was in Ireland. I.e. for each county have it change dynamically. Thats okay, think I'll leave it out of the project and might consider doing it somewhere down the line.
Cheers,
Derek
Hi Derek,
Thanks for the points :-)
tigermatt