一个下拉列表框的问题!
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#94b6cf" >
<tr class="tr1">
<td width="60%" align="center" height="25" bgcolor="#F4F9F9">
‘此处从数据库中读出用户的id和姓名,并列在下拉列表框中,当我选中任意一个姓名时,可以对相应的人员进行编辑,但id却不能够动态的变化,不知道该如何解决?
<select name="userlist">
<% set rslist=server.CreateObject("adodb.recordset")
sqllist="select id,姓名 from userinfo"
rslist.open sqllist,conn,1,1
for j=1 to rslist.recordcount
if not rslist.eof then
response.Write "<option value="&rslist("id")&">"&rslist("姓名")&"</option>"
end if
rslist.movenext
next
%>
</select> </td>
<td align="center"><form action="personal.asp" method="post" class="form1"><input type="submit" name="Submit" value="提交" class="button1"></form>
’关键是下面的部分,当选中用户名后,id该如何跟着动态变化??求大家帮忙!!是不是我写的语句有问题??
<%
response.write"<a href='personal.asp?act=edit&id="&request("userlist")&"'>编辑</a>"
'response.write"<a href='javascript:confirmDel("&requset("id")&")'>删除</a>"
%>
</td></tr>
</table>