Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Help

Options
  • 08-03-2006 8:43pm
    #1
    Closed Accounts Posts: 23


    Hi,

    I'm writing a webpage with PHP and am wondering if anyone knows how to make more fields from the previous ones.

    Eg. Say I select dublin, a dropdown menu would select all the postcodes

    Cheers,

    Walbert


Comments

  • Moderators, Politics Moderators Posts: 39,795 Mod ✭✭✭✭Seth Brundle


    Like this url]http://www.felgall.com/jstip22.htm[/url?
    Client Side JavaScript!


  • Closed Accounts Posts: 82 ✭✭cyberbob


    or you could make the onchange refresh the page sending the choice of the first form to the script

    //blah
    if($_POST)
    {
    if( $_POST = 'dublin' )
    {
    //blah
    //set up the second dropdown
    }

    if ($_POST = 'xxx')
    {
    //more blah
    }
    }else{
    //set up with second dropdown blank
    }


Advertisement