Help for entering in Location (city/state) from people's URL |
Help for entering in Location (city/state) from people's URL |
KRW0000 |
Jul 27 2011, 05:31 PM
Post
#1
|
Group: Members Posts: 3 Joined: 27-July 11 Member No.: 15,020 |
Hi,
I need help understanding how to place code in Kompozer that will allow the state (if not the city) change each time a unique visitor clicks on my site. eg> "Welcome to my Website, there are 14 job opportunities in <CITY, STATE> (based upon their URL) today." Thanks |
pandy |
Jul 27 2011, 07:54 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
You want to detect the user's location? That's not possible with HTML.
|
Darin McGrew |
Jul 27 2011, 08:01 PM
Post
#3
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
What kind of server-side programming can you use? CGI? PHP? ASP? something else?
|
KRW0000 |
Jul 27 2011, 08:05 PM
Post
#4
|
Group: Members Posts: 3 Joined: 27-July 11 Member No.: 15,020 |
|
KRW0000 |
Jul 27 2011, 08:06 PM
Post
#5
|
Group: Members Posts: 3 Joined: 27-July 11 Member No.: 15,020 |
|
Christian J |
Jul 27 2011, 08:23 PM
Post
#6
|
. Group: WDG Moderators Posts: 9,630 Joined: 10-August 06 Member No.: 7 |
Seems there are scripts that try to get the user's location from the IP address, but from what I've seen they are pretty inaccurate. Don't know if the scripts or the IP addresses are to blame though.
|
pandy |
Jul 27 2011, 09:05 PM
Post
#7
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Yeah, there used to be some kind of packaged called Geo-IP (or similar). It could be used with stats scripts and so on to show a more exact location of the visitors.
When I tried to google for it now it turned out there are a lot of sites offering this as a service. Maybe that would suffice? Here's one. http://www.geoip.co.uk/geoiptool.php |
pandy |
Jul 27 2011, 09:07 PM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Oh, it seems you don't get the whole shabang as you do at their frontpage.
http://www.geoip.co.uk/geoiptool.php But maybe there are others that offer more. |
pandy |
Jul 27 2011, 09:09 PM
Post
#9
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Seems there are scripts that try to get the user's location from the IP address, but from what I've seen they are pretty inaccurate. Don't know if the scripts or the IP addresses are to blame though. Earlier, when I was on Telia, they often placed me somewhere in another county. Now when I'm on Bredbandsbolaget they seem to get it right. Maybe it has to do with how the providers distribute the IP addresses? |
Frederiek |
Jul 28 2011, 03:58 AM
Post
#10
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
I use Maxmind ( http://www.maxmind.com/app/ip-location ) for my web site stats (using city, region and country) and it seems quite accurate. Try their demo at http://www.maxmind.com/app/locate_demo_ip and click the link "(To get a demo for your IP address, click here.)".
|
Lo-Fi Version | Time is now: 28th March 2024 - 07:38 PM |