Looking for a very good tutorial to create something like this...

Discussion in 'PHP' started by jehzlau, Jul 23, 2007.

  1. #1
    Looking for a very good tutorial to create something like this...

    http://www.infolock.info/demo/Job2C/auth.php?mode=regnew&adtype=res&lang=eng

    I just want to create something like the link above, which can auto populate a drop down menu after selecting a country, for example I selected United States, it will show all the states in US, then after selecting the states it will show all the cities. I don't know how to create it, i have seen a tutorial from Remy Sharp but it's not easy to comprehend, maybe there's more easier tutorial for a noob like me... :(

    I hope someone will reply in this post T_T
     
    jehzlau, Jul 23, 2007 IP
  2. sdemidko

    sdemidko Member

    Messages:
    81
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #2
    First what you need - is to be familiar with AJAX (try prototypejs.org). It's pretty simple to use. The second what you need - create DB with such relations: country-state-city. Third - create a script, which can extract info from DB depending on some paameters. Now when the script is ready you need create page with correct responses to your php. Something like this: your.php?country=c&state=s&.... So the script will answer you some data depending on parameters of your request.
    I can't explain more detailed (sorry, have no time ...).
    Try to create someth simple to understand how all this stuff works. For example: create a DB with 2 countries and states for it. So you can simply debug all the process.
     
    sdemidko, Jul 24, 2007 IP
  3. jehzlau

    jehzlau Active Member

    Messages:
    301
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #3
    is there any sample script available? in which i can refer? a very basic simple script... T____T
     
    jehzlau, Jul 24, 2007 IP
  4. valters

    valters Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think if you want to make this form, it will not be simple, because if U were some smart guy in programming you can build it by U'r own, so good luck for finding. ;)
     
    valters, Jul 24, 2007 IP
  5. jehzlau

    jehzlau Active Member

    Messages:
    301
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #5
    yeah im not that smart.. that's why im asking if you can point me for some tutorials for noobs T___T.. like me :(
     
    jehzlau, Jul 26, 2007 IP