|
我是ASP初学者,哪位老大能帮我看下,急!
第一个文件:u_check.asp
代码如下:
<!--#include file="conn.asp" -->
<head>
<link href="../css/index.css" rel="stylesheet" type="text/css" />
</head>
<%
exec="select * from Students where id="&request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.open exec,conn,1,1
%>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td class="bg3"> </td>
</tr>
</table>
<!--#include file="u_so.asp" -->
<table width="100%" border="0" align="right" cellpadding="3" cellspacing="1" class="bx">
<form action="u_check_bc.asp" method="post" name="myform">
<tr>
<td colspan="4" align="right" class="bg" width="828" height="21"> </td>
</tr>
<tr>
<td width="111" align="right" class="bg2" height="22">身份证号码</td>
<td width="303" class="bg2" height="22">
<input type="hidden" name="id" value="<%=rs("id")%>">
<input name="stuid" type="text" value="<%=rs("StuId")%>" readonly="true" ></td>
<td width="98" align="right" class="bg2" height="22">是否已缴费</td>
<td width="276" class="bg2" height="22">
<select name="rx">
<option <% if rs("rx")="是" then response.write"selected" %> value="是">是</option>
<option <% if rs("rx")="否" then response.write"selected" %> value="否">否</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="bg2" width="111" height="25">密码</td>
<td class="bg2" width="303" height="25"><input name="stupwd" type="password" value="<%=rs("StuPwd")%>"></td>
<td align="right" class="bg2" width="98" height="25">考试时间</td>
<td class="bg2" width="276" height="25">
<input name="ksdate" type="text" id="ksdate" value="<%=rs("Ksdate")%>" />
</td>
</tr>
<tr>
<td align="right" class="bg2" width="111" height="25">姓名</td>
<td class="bg2" width="303" height="25"><input name="stuname" type="text" value="<%=rs("StuName")%>"></td>
<td align="right" class="bg2" width="98" height="25">性别</td>
<td class="bg2" width="276" height="25"><input name="stusex" type="text" value="<%=rs("StuSex")%>" /></td>
</tr>
<tr>
<td align="right" class="bg2" width="111" height="25">档案号</td>
<td class="bg2" width="303" height="25"><input name="stuage" type="text" value="<%=rs("StuAge")%>"></td>
<td align="right" class="bg2" width="98" height="25">学历</td>
<td class="bg2" width="276" height="25"><input name="degree" type="text" id="degree" value="<%=rs("Degree")%>" /></td>
</tr>
<tr>
<td align="right" class="bg2" width="111" height="25">考点</td>
<td class="bg2" width="303" height="25"><input name="kd" type="text" value="<%=rs("Kd")%>"></td>
<td align="right" class="bg2" width="98" height="25">手机号码</td>
<td class="bg2" width="276" height="25"><input name="nativeplace" type="text" value="<%=rs("NativePlace")%>" /></td>
</tr>
<tr>
<td align="right" class="bg2" width="111" height="25">工作单位</td>
<td class="bg2" width="303" height="25"><input name="companyname" type="text" value="<%=rs("CompanyName")%>"></td>
<td align="right" class="bg2" width="98" height="25">邮政编码</td>
<td class="bg2" width="276" height="25"><input name="stutitle" type="text" id="stutitle" value="<%=rs("StuTitle")%>" /></td>
</tr>
<tr>
<td align="right" class="bg2" width="111" height="97">报考科目</td>
<td colspan="3" class="bg2" width="707" height="97"><textarea name="zy" cols="80" rows="3"><%=rs("zy")%></textarea>
科目之间用“,”隔开 </td>
</tr>
<tr>
<td class="bg2" width="111" height="27"></td>
<td colspan="3" class="bg2" width="707" height="27"><input type="submit" name="Submit" value="提交"></td>
</tr>
</form>
</table>
第二个文件:u_check_bc.asp
代码如下:
<!--#include file="conn.asp" -->
<%
exec="select * from Students where id="&request.form("id")
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
rs("stuid")=request.Form("stuid")
rs("StuPwd")=request.Form("stupwd")
rs("StuName")=request.Form("stuname")
rs("StuAge")=request.Form("stuage")
rs("Degree")=request.Form("degree")
rs("CompanyName")=request.Form("companyname")
rs("NativePlave")=request.Form("nativeplave")
rs("StuSex")=request.Form("stusex")
rs("zy")=request.Form("zy")
rs("Kd")=request.Form("kd")
rs("ksdate")=request.Form("ksdate")
rs("rx")=request.Form("rx")
rs("rd")=request.Form("rd")
rs.update
Response.Redirect("u_lb.asp")
%>
问题是在第一个文件:u_check.asp 提交后“您要访问的网页有问题,无法显示。” |
|