修改页面打不开,请高手帮忙看一下代码
<a href='javascript:openScript("xg.asp?id=<%=rs("id")%>",420,310)'> 修改</a>xg.asp代码如下
<!--#include file="Conn.asp"-->
<!--#include file="admin/session.asp"-->
<%
id=request.QueryString("id")
if id="" then response.Redirect("index.asp")
set rs = server.CreateObject("adodb.recordset")
exec="select * from user where id="&id
rs.open exec,conn,1,1
%>
<%do while not rs.eof%>
<html>
<head>
<title>修改系统</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body background="images/tbg.JPG">
<body bgcolor="#ffffff" text="#000000" onunload="window.opener.location.reload();">
<p align="center"><font face="宋体" size="2" color="#ff0000">职工修改模块</font><font size="2"><br><br>
</font><form action=usersave.asp?id=<%=rs("id")%> method="post">
<table width="71%" border="0" cellpadding="0" cellspacing="0" align="center" id="table1">
<tr>
<td align="left">
<p align="justify"><font size="2">姓名:</font></td>
<td>
<input type="text" name="姓名" size="20" value="<%=rs("姓名")%>"><font size="2"> </font></td>
</tr>
<tr>
<td align="left">
<p align="justify"><font size="2">工号:</font></td>
<td>
<input type="text" name="工号" size="20" value="<%=rs("工号")%>"><font size="2"> </font></td>
</tr>
<tr>
<td align="left">
<p align="justify"><font size="2">手机号:</font></td>
<td>
<input type="text" name="手机" size="20" value="<%=rs("手机")%>"><font size="2"> </font></td>
</tr>
<tr>
<td align="left">邮箱:</td>
<td>
<input type="text" name="邮箱" size="20" value="<%=rs("邮箱")%>"></td>
</tr>
<tr>
<td align="left"><font size="2">部门:</font></td>
<td>
<input name="部门" size="20" value="<%=rs("部门")%>"></td>
</tr>
<tr>
<td align="left"><font size="2">备注:</font></td>
<td>
<input name="备注" size="20" value="<%=rs("备注")%>"></td>
</tr>
<input name="id" size="20" value="<%=rs("id")%>" type=hidden>
</tr><%
'conn.Close
set conn = nothing
set rs2 = nothing
rs.movenext
loop
%>
<tr>
<td colspan="2" height="26">
<p align="center">
<br>
<input type="submit" name="submit" value="修改"><font size="2">
</font> <input type="reset" name="submit2" value="重写"><br>
</td>
</tr>
</table>
</form>
</body>
</html>
[ 本帖最后由 创可贴1 于 2012-9-21 10:08 编辑 ]