28,391
社区成员
发帖
与我相关
我的任务
分享
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e8ef" class="classtable">
<form action="Admin_Form_Skin.asp?action=save" method="post" name="form2" id="form2">
<tr class="classrow">
<td width="85" align="right">姓名:</td>
<td>
<textarea name="sdf" cols="100" rows="6" id="sdf"></textarea>
</td>
</tr>
<tr class="classrow">
<td width="85" align="right">介绍:</td>
<td>
<input name="www" type="text" id="www" size="">
</td>
</tr>
<tr class="classrow">
<td align="right"></td>
<td><input type="submit" name="button" id="button" value="保 存" class="button"/></td>
</tr></form>
</table>
<%
Values=Request.Form()
response.Write(Values)
%>
For each obj in Request.Form
Response.write obj & " " & Request.Form(obj) & " <br>"
Next
这种方法为循环单个获取就不会出现中文为乱码的问题了。<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e8ef" class="classtable">
<form action="test.asp?action=save" method="post" name="form2" id="form2">
<tr class="classrow">
<td width="85" align="right">姓名:</td>
<td>
<textarea name="sdf" cols="100" rows="6" id="sdf"></textarea>
</td>
</tr>
<tr class="classrow">
<td width="85" align="right">介绍:</td>
<td>
<input name="www" type="text" id="www" size="">
</td>
</tr>
<tr class="classrow">
<td align="right"></td>
<td><input type="submit" name="button" id="button" value="保 存" class="button"/></td>
</tr></form>
</table>
<%
If Request.QueryString("action")="save" then
For each obj in Request.Form
Response.write obj & " " & Request.Form(obj) & " <br>"
Next
end if
%>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e8ef" class="classtable">
<form action="test.asp?action=save" method="post" name="form2" id="form2">
<tr class="classrow">
<td width="85" align="right">姓名:</td>
<td>
<textarea name="sdf" cols="100" rows="6" id="sdf"></textarea>
</td>
</tr>
<tr class="classrow">
<td width="85" align="right">介绍:</td>
<td>
<input name="www" type="text" id="www" size="">
</td>
</tr>
<tr class="classrow">
<td align="right"></td>
<td><input type="submit" name="button" id="button" value="保 存" class="button"/></td>
</tr></form>
</table>
<%
If Request.QueryString("action")="save" then
Values=Request.Form()
sdf=Request.Form("sdf")
response.Write(sdf)
response.Write("<br>")
response.Write(Values)
response.End()
end if
%>
</body>
</html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e8ef" class="classtable">
<form action="test.asp?action=save" method="post" name="form2" id="form2">
<tr class="classrow">
<td width="85" align="right">姓名:</td>
<td>
<textarea name="sdf" cols="100" rows="6" id="sdf"></textarea>
</td>
</tr>
<tr class="classrow">
<td width="85" align="right">介绍:</td>
<td>
<input name="www" type="text" id="www" size="">
</td>
</tr>
<tr class="classrow">
<td align="right"></td>
<td><input type="submit" name="button" id="button" value="保 存" class="button"/></td>
</tr></form>
</table>
<%
If Request.QueryString("action")="save" then
Values=Request.Form()
response.Write(Values)
response.End()
end if
%>
sdf=%C8%F6%B5%A9%B7%A8%C8%F8%B7%D2%B7%BD%CA%BD&www=324&button=%B1%A3+%B4%E6
<%
Values=Request.Form("sdf")
response.Write(Values)
%>