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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Help

  • 08-03-2006 7: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: 41,229 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