Web Analytics Made Easy -
StatCounter help with drop down - CodingForum

Announcement

Collapse
No announcement yet.

help with drop down

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    simply select the options you want:
    Code:
    <select name="DelCon" id="DelCon" onchange="UpdateQuantity()">
    <option><?php echo $HTTP_POST_VARS["DelCon"]?></option>
    <option [COLOR="Red"]selected[/COLOR] value="UK">UK</option>
    <option value="AGUILLA">AGUILLA</option>
    <option value="ALBANIA">ALBANIA</option>
    <option value="ALGERIA">ALGERIA</option>
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    Comment

    Working...
    X