Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help with drop down

    Hi I have created the following for adropdown menu
    //<form id="frmBasket" name="frmBasket" method="post">
    <select name="DelCon" id="DelCon" onchange="UpdateQuantity()">
    <option Selected="True"><?php echo $HTTP_POST_VARS["DelCon"]?></option>
    <option value="UK">UK</option>
    <option value="AGUILLA">AGUILLA</option>
    <option value="ALBANIA">ALBANIA</option>
    <option value="ALGERIA">ALGERIA</option>///

    When you initally load the page the top menu is blank, but when you choose a country (say UK) it appears in the top of the menu.

    I want UK to appear when the page first loads, and then change when you select another country.

    Thanks

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    simply select the options you want:
    Code:
    <select name="DelCon" id="DelCon" onchange="UpdateQuantity()">
    <option><?php echo $HTTP_POST_VARS["DelCon"]?></option>
    <option selected value="UK">UK</option>
    <option value="AGUILLA">AGUILLA</option>
    <option value="ALBANIA">ALBANIA</option>
    <option value="ALGERIA">ALGERIA</option>
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •