日期:2014-05-16 浏览次数:20833 次
<body>
<form name="form1" method="post" action="edit.asp">
请输入要修改的学号:
<input type="text" name="id">
<br>
<input type="submit" name="submit" value="提交">
</form>
</body>
<body>
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("fpdb/lianxi1.mdb")
temp=Request.Form("id")
exec="select * from lianxibiao1 where 学号='"&temp&"'"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn
%>
<form name="form1" method="post" action="modify.asp">
<table width="748" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="16"><b>编号</b></td>
<td height="16"><b>学号</b></td>
<td height="16"><b>姓名</b></td>
<td height="16"><b>学习类型</b></td>
<td height="16"><b>学院</b></td>
<td height="16"><b>专业</b></td>
<td height="16"><b>联系电话</b></td>
</tr>
<tr>
<td>
<input type="text" name="bianhao" value="<%=rs("编号")%>">
</td>
<td>
<input type="text" name="xuehao" value="<%=rs("学号")%>">
</td>
<td>
<input type="text" name="xm" value="<%=rs("姓名")%>">
</td>
<td>
<input type="text" name="xuexilx" value="<%=rs("学习类型")%>">
</td>
<td>
<input type="text" name="xueyuan" value="<%=rs("学院")%>">
</td>
<td>
<input type="text" name="zhuanye" value="<%=rs("专业")%>">
</td>
<td>
<input type="text" name="dianhua" value="<%=rs("联系电话")%>">
</td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="提交">
<input type="hidden" name="xuehao" value="<%=request.form("学号")%>">
</tr>
</table>
</form>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%> &n