Linking form fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Intelengine
    Corporal

    • Dec 2009
    • 15

    Linking form fields

    Hello,

    I have a problem with my form.
    I want to do something with some fields of my form but I don´t no how to do it.

    Example: I have to combobox´s;

    1st combobox name is: COUNTRY (wich have inside a few items)
    united estates
    united kingdom
    ....................

    2nd combobox name is: CITY
    new york
    london
    ............

    What I want to do is, every time a user of website chooses for exemple in the 1st combobox the COUNTRY: UNITED STATES, automatically shows up in the 2nd combobox only the united states citys and all the other citys from other countrys will not be displayed.

    Can you tell me how can I "link" this to combobox´s this way?

    PS: Sorry for the bad english. I hope you understand my question.

    Best regards,
    Nuno Abrantes
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: Linking form fields

    There is no easy way. You need to use either Javascript or Ajax.
    Javascript can be fine if you only have a few countries / cities.
    If you want to have many countries / cities, Ajax is the way to go.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    Working...
    X