I have this form below that passes some values to an asp form collection page. I do not have problem passing the values of the <input> tags to the page, I just do,
rac_last= request.form("rac_last"
.....
But I'm having a problem passing the value of the <select> tag. When I do dep_code = request.form("dep_code"
, no value is being passed.
Any help will be greatly appreciated.
<body><form name="racform" action="add_action.asp?action=update_rac" method="post" onsubmit="return verifyrac()">
<center>
<table>
<tr><td>Last Name:<input type=text name="rac_last" value="<%=staffset("rac_last"
%>"></td>
<tr><td>First Name:<input type=text name="rac_first" value="<%=staffset("rac_first"
%>"></td>
<tr><td>Title:<input type=text name="rac_title" value="<%=staffset("rac_title"
%>"></td>
<tr><td>Department:<select name="dep_code">
<option value="<%=staffset("rac_dep_code"
%>" selected><%=staffset("dep_name"
%></option>
<%
strtext="select * from rac_dep"
set deptset=hertzDB.Execute(strtext)
deptset.movefirst
while not deptset.eof
%>
<option value="<%=deptset("dep_code"
%>"><%=deptset("dep_name"
%>
</option>
<%
deptset.movenext
wend
%>
</select>
rac_last= request.form("rac_last"

But I'm having a problem passing the value of the <select> tag. When I do dep_code = request.form("dep_code"

Any help will be greatly appreciated.
<body><form name="racform" action="add_action.asp?action=update_rac" method="post" onsubmit="return verifyrac()">
<center>
<table>
<tr><td>Last Name:<input type=text name="rac_last" value="<%=staffset("rac_last"

<tr><td>First Name:<input type=text name="rac_first" value="<%=staffset("rac_first"

<tr><td>Title:<input type=text name="rac_title" value="<%=staffset("rac_title"

<tr><td>Department:<select name="dep_code">
<option value="<%=staffset("rac_dep_code"


<%
strtext="select * from rac_dep"
set deptset=hertzDB.Execute(strtext)
deptset.movefirst
while not deptset.eof
%>
<option value="<%=deptset("dep_code"


</option>
<%
deptset.movenext
wend
%>
</select>