T
Tom Petersen
Here is the code:
<SELECT NAME="email" style="font-family: Verdana; font-size: 10pt; "
size="1">
<%
DO WHILE NOT objRS.EOF
strEmail = objRS("email")
strLName = objRS("last_name")
strFName = objRS("first_name")
%>
<option value="<% =strEmail %>"><%= strLName & ", " & strFName %>
</option>
<%
objRS.MoveNext
Loop
objRS.Close
Set objRS = Nothing
%>
</SELECT></font></b></td>
<input type="hidden" name="last_name" value="<% =strLName %>">
snip
<INPUT TYPE=SUBMIT VALUE="Submit Form">
Now when the form is submitted to my results page that updates the database,
the value for strLName is, obvioulsy, the last record in the database. How
do I make the value equal what the user selected from the drop down?
Or in other words, if my drop down value is:
1
2
3
4
5,
and the user picks 3, the value that gets added to the db is always 5...
TIA
<SELECT NAME="email" style="font-family: Verdana; font-size: 10pt; "
size="1">
<%
DO WHILE NOT objRS.EOF
strEmail = objRS("email")
strLName = objRS("last_name")
strFName = objRS("first_name")
%>
<option value="<% =strEmail %>"><%= strLName & ", " & strFName %>
</option>
<%
objRS.MoveNext
Loop
objRS.Close
Set objRS = Nothing
%>
</SELECT></font></b></td>
<input type="hidden" name="last_name" value="<% =strLName %>">
snip
<INPUT TYPE=SUBMIT VALUE="Submit Form">
Now when the form is submitted to my results page that updates the database,
the value for strLName is, obvioulsy, the last record in the database. How
do I make the value equal what the user selected from the drop down?
Or in other words, if my drop down value is:
1
2
3
4
5,
and the user picks 3, the value that gets added to the db is always 5...
TIA