日期:2014-05-16  浏览次数:20723 次

从未接触过ASP,问个问题
c++写的post数据提交到1.asp,1.asp怎么接收post过来的数据

这个1.asp该怎么写

求教了,谢谢

------解决方案--------------------
<%
data = request.querystring("参数名")
或者
data = request.form("参数名")
%>
------解决方案--------------------
<%
'或者
data = request("参数名")
 %>
------解决方案--------------------
就使用request("变量名字")
------解决方案--------------------
request("变量名字") 是绝对错误的写法。会产生cookies的安全问题。

1.asp页面
<form method="post" action="2.asp">
<input type="text" name="name">
</form>

2.asp页面
<%name=request.form("name")%>
<%=name%><br>上面显示1.asp的输入值

----------------------

至于更具体的,自己多谢谢就知道了。