The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help for entering in Location (city/state) from people's URL
KRW0000
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
KRW0000
post Jul 27 2011, 08:05 PM
Post #4





Group: Members
Posts: 3
Joined: 27-July 11
Member No.: 15,020



QUOTE(pandy @ Jul 27 2011, 08:54 PM) *

You want to detect the user's location? That's not possible with HTML.


Hey Pandy,

Is it possible at all? I have php, but I don't know yet how to utilize it. I'm sure I can figure it out though
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
KRW0000
post Jul 27 2011, 08:06 PM
Post #5





Group: Members
Posts: 3
Joined: 27-July 11
Member No.: 15,020



QUOTE(Darin McGrew @ Jul 27 2011, 09:01 PM) *

What kind of server-side programming can you use? CGI? PHP? ASP? something else?



I have PHP, but don't know how to use it yet...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 27 2011, 09:09 PM
Post #9


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Jul 28 2011, 03:23 AM) *

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? wacko.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post 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.)".
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 07:38 PM