日期:2014-05-16 浏览次数:20428 次
<style type="text/css">
.dys1 {
position:absolute;
z-index:5;
left:384px;
width:18px;
overflow:hidden;
top: 91px;
}
.dys1 select {
margin-left:-111px;
width:129px;
}
.dyw1 {
position:absolute;
z-index:4;
#top:-1px;
left: 289px;
top: 90px;
width: 72px;
height: 17px;
}
.dyw1 input {
width:90px;
voice-family:"\"}\"";
voice-family:inherit;
}
</style>
<table width="200" border="1" bordercolor="#000000" bgcolor="#CCCCCC">
<form action="nj.asp" method="post" name="form1">
<table><tr>
<%
set conn6=server.createobject("adodb.connection")
conn6.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("xuexiao.mdb")
exec6="select distinct jcj from xueshengku"
set rs6=server.createobject("adodb.recordset")
rs6.open exec6,conn6,1,1
if rs6.eof then
end if
%><td>
<p class="dys1">
<select id="jcj" onChange="document.getElementById('okw1').value=this.value;" style="background-color:#00CCCC">
<option value="0">请选择年级</option>
<%
do while not rs6.eof
%>
<option value="<%=rs6("jcj")%>"><%=rs6("jcj")%></option>
<%
rs6.movenext
loop
%></select></p>
</td><td>
<p class="dyw1">
<input type="text" name="jcj" id="okw1" value="选择年级" /></p>
为什么我在select中选择数据后,再在这里的text中修改时,提交到数据库
</p>
的值为什么还是0,而不是我选择后再修改的数据???????
</td></tr></table>
<input name="add_plan2" type="button" id="add_nj" value="添加" />
</form>