I have a drop down list item that is populated by a
database and once selected repopulates a table with
information related to the list item.

The problem is that when a user selects a list item, the
list item refers back to the first item in the list. I'm a
bit new at this.... I really need some help.

Re: Drop down list not retaining selected value by grw

grw
Thu Jul 24 06:15:15 CDT 2003

Modify your code so that each select "option" refers to the selected value

<select name="dropdown">
<option value="1" <%If request.form("dropdown")="1" then response.write "
selected"%>> Option 1</option>
<option value="2" <%If request.form("dropdown")="2" then response.write "
selected"%>> Option 2</option>
<option value="3" <%If request.form("dropdown")="3" then response.write "
selected"%>> Option 3</option>


"JDoak" <jdoak@veddergroup.com> wrote in message
news:18b701c35139$b51d5510$3501280a@phx.gbl...
> I have a drop down list item that is populated by a
> database and once selected repopulates a table with
> information related to the list item.
>
> The problem is that when a user selects a list item, the
> list item refers back to the first item in the list. I'm a
> bit new at this.... I really need some help.