Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2010
    Posts
    390
    Thanks
    48
    Thanked 1 Time in 1 Post

    Help on locating website users Postal Code

    Hello,

    This example will find your approximate location with your consent. I need to know how to do something similar to find their postal code without needing to request any permissions.

    Why do you need to know their postal code?
    • The website graphics will display differently depending on the users location.
    • To show their weather forecast.
    • To determine how many miles away from the business location the person is.
    • Personalize the information to make a better user experience.


    What is the best option for myself to find their postal code?

    Note: This is only needed for UK users only.

    Best Regards,
    Tim

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Link

    Without requiring permission..?! The users' browser will (should!) require permission to supply geo-data and I trust that this will continue to be the case.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • #3
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,073
    Thanks
    11
    Thanked 96 Times in 94 Posts
    there are geo-ip lookup databases out there which will find a rough location based on the IP address (which you get without asking) ....
    but e.g. I am in Perth WA and sometimes I appear to be in Alice Spings if you believe the ip-lookup , I don't cos its cloudy today and Alice Springs is scorching all year round + not a dingo in sight!
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •