日期:2014-05-17  浏览次数:20880 次

同一ASP页面传递表单,如何正确获取修改后的表单?
代码如下,现在就是一直修改不了,点击修改还是原始的数据。
看过http://topic.csdn.net/u/20110609/09/f8f7f58d-a04b-4e39-8f66-8d3f5e8415b3.html
觉得应该是修改后的表单的问题,但是他的是改一项,我的多项不能用他的那个方法,纠结ing
<!-- #include file="conn.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改参会人员信息</title>
<style type="text/css">
<!--
body {
background-color: #9999CC;
}
input {
background-color: #D5D5EA;
}
textarea {
background-color: #D5D5EA;
}
table {
font-size: 12px;
text-decoration: none;
border: thin dashed #8484C1;
}
td {
font-size: 12px;
border: thin dotted #8484C1;
text-align: left;
}
-->
</style></head>
<center>
<body>
<br />
<%
id=request.QueryString("id")
response.Write id
set rsc=server.createobject("adodb.recordset")
sqlc="select * from person where ID="&id&""
rsc.open sqlc,conn,1,1
pname=rsc("pname")
psex=rsc("psex")
ethnic=rsc("ethnic")
post=rsc("post")
phone=rsc("phone")
path=rsc("email")
rsc.colse
set rsc=nothing
%>

<form action="update.asp?ac=ch&id=<%=id%>" method="post" name="form1" id="form1">
<input type="hidden" name="id" id="id" value="<%=id%>" />
  <table width="22%" height="105" border="0" >
  <tr>
  <td width="27%">姓名:</td>
  <td width="73%"><input name="pname" type="text" id="pname" value="<%=pname%>" />
  </td>
  </tr>
  <tr>
  <td>性别:</td>
  <td><input name="psex" type="text" id="psex" value="<%=psex%>" />
  </td>
  </tr>
  <tr>
  <td>民族:</td>
  <td><input name="ethnic" type="text" id="ethnic" value="<%=ethnic%>" /></td>
  </tr>
  <tr>
  <td>部门职务:</td>
  <td><input name="post" type="text" id="post" value="<%=post%>" /></td>
  </tr>
  <tr>
  <td>联系电话:</td>
  <td><input name="phone" type="text" id="phone" value="<%=phone%>" /></td>
  </tr>
  <tr>
  <td>Email:</td>
  <td><input name="email" type="text" id="email" value="<%=email%>" /></td>
  </tr>
  <tr>
  <td>照片:</td>
  <td><input name="src" type="text" id="src" value="<%=path%>" />
  </td>
  </tr>
  <tr>
  <td>&nbsp;</td>
  <td><input type="submit" name