Problems with Dropdown Box Menu...

They have: 13 posts

Joined: May 2004

I'm setting up an e-commerce cart for my new store and I want to use some dropdown boxes. I almost never code with them and copy-pasted some code from a forum that deals with the cart.

The problem is:

A. The dropdown boxes aren't the same size.
B. They don't sit in the "middle" of the table.
C. They don't sit on top of each other.
D. The menus automatically select the wrong page and make that the highlighted option in the dropdown. I.E. The dropdown box will highlight "links" when you are actually at "home" and this makes it impossible to access "links" with the dropdown.

The page is located here:

http://www.staytrueclothing.com/store

The code i am using is:

    <td width="197">
<form name="form_info" method="get" action="pages.php">
              <select name="pageid" onChange="document.form_info.submit()" >
                <option value="0" selected>*Stay True Pages*</option>
                {section name=pg loop=$pages_menu}
                <option value="{$pages_menu[pg].pageid}">
                {$pages_menu[pg].title}
                </option>
                {/section}
              </select>
            </form>
<form name="form_cat" method="get" action="home.php">
              <select name="cat" onChange="document.form_cat.submit()">
                <option value="0">*Web-Store Categories*</option>
                {section name=cat_num loop=$categories}
                <option value="{$categories[cat_num].categoryid}" selected>
                {$categories[cat_num].category}
                </option>
                {/section}
              </select>
            </form></td>
'

Thanks Again