Sign up form with location selection

Discussion in 'PHP' started by wrekoniz3, Aug 22, 2011.

  1. #1
    I was wondering if there is currently any API out there or script for location selection on sign up forms. Instead of locally storing every city state, country etc.. have a remote service or API managing it.


    I would even settle with a script which handles all of it. Any tips?
     
    wrekoniz3, Aug 22, 2011 IP
  2. [GotHost] James

    [GotHost] James Guest

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There aren't likely to be any new countries (or states/provinces) created anytime soon, so that'll be why there probably isn't such a service.
    You could even store it as a text-file, one country per line and loop through them rather than having the write the HTML or whatever out for each one.
     
    [GotHost] James, Aug 22, 2011 IP
  3. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #3
    MyVodaFone, Aug 23, 2011 IP
  4. wrekoniz3

    wrekoniz3 Well-Known Member

    Messages:
    2,232
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    190
    #4
    well i just dont want to have to manage it, and im trying to do a form for a sign up. I dont want to allow people to just type in the location because people like to type in ebonics on my site. @MyVodaFone thanks for the link. Ill check it out. Looks cool supports MySQL.
     
    wrekoniz3, Aug 27, 2011 IP
  5. HungryMinds

    HungryMinds Active Member

    Messages:
    216
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #5
    HungryMinds, Aug 27, 2011 IP
  6. ketting00

    ketting00 Well-Known Member

    Messages:
    782
    Likes Received:
    28
    Best Answers:
    3
    Trophy Points:
    128
    #6
    ketting00, Aug 27, 2011 IP
  7. Ciprian

    Ciprian Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #7
    Just use a dropdown with a list of countries. I do this all the time, and I have a PHP file I include all the time:

    <?php include('helpers/countries.php');?>
    PHP:
     
    Ciprian, Aug 28, 2011 IP
  8. wrekoniz3

    wrekoniz3 Well-Known Member

    Messages:
    2,232
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    190
    #8
    Cant? Well i dont have an option considering this is being done for mobile phones. Thank you for your input and advice though. I will check them out.
     
    wrekoniz3, Sep 7, 2011 IP
  9. wrekoniz3

    wrekoniz3 Well-Known Member

    Messages:
    2,232
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    190
    #9

    I am not looking for IP Geolocation recognition. I am looking for a drop down of all the countries in the world, another drop down of all the locales in that country, then another drop down for the towns/cities in that locale. I wish there was a simple API for doing this.
     
    wrekoniz3, Sep 7, 2011 IP