为什么asp只能用get提交,不能用post

charles27823349 2008-12-01 08:32:33
如题
...全文
170 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
Yan_October 2010-12-28
  • 打赏
  • 举报
回复
一般网站屏蔽了form中不带值的恶意提交方法 所以你form中的method="post"的时候会返回找不到路径,只有当method="get"的时候才能成功提交!
fhb2007 2008-12-02
  • 打赏
  • 举报
回复
表单提交有“get”方法,也有“post”,仔细看看
aspvfp 2008-12-02
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 charles27823349 的回复:]
<form action="xianshi.asp" method="post" name="form1" target="_blank" id="form1">

<input name="baojin" type="text" id="baojin" />
<input type="submit" name="Submit" value="提交" />
</form>

xianshi.asp
.... dim baojin
baojin=Request.form("baojin")
response.write(baojin)...
最后write显示为空baojin为空
[/Quote]


测试过没问题 你自己另外做2个文件 就提取这2段代码

估计被其他代码干扰了。
不耐烦 2008-12-01
  • 打赏
  • 举报
回复
<input type="text" name="baojin" id="baojin" />
你添值了没
简购 2008-12-01
  • 打赏
  • 举报
回复
你的代码没问题啊!可能是路径的问题吧?你检查一下xianshi.asp与你的输入框所在的文件是否在同一个文件夹下面.
charles27823349 2008-12-01
  • 打赏
  • 举报
回复
关键是baojin值就是为空
if baojin=""then
response.write("请输入值")
end if
草原可可 2008-12-01
  • 打赏
  • 举报
回复
post 和form 一起用
不耐烦 2008-12-01
  • 打赏
  • 举报
回复
<form name="form1" method="post" action="xianshi.asp" target="_blank">
<input type="text" name="baojin" id="baojin" />
<input type="submit" name="button" id="button" value="提交" />
</form>
xianshi.asp
dim baojin
baojin=Request.form("baojin")
response.write baojin
%>
charles27823349 2008-12-01
  • 打赏
  • 举报
回复
<form action="xianshi.asp" method="post" name="form1" target="_blank" id="form1">

<input name="baojin" type="text" id="baojin" />
<input type="submit" name="Submit" value="提交" />
</form>

xianshi.asp
.... dim baojin
baojin=Request.form("baojin")
response.write(baojin)...
最后write显示为空baojin为空
charles27823349 2008-12-01
  • 打赏
  • 举报
回复
<form action="xianshi.asp" method="post" name="form1" target="_blank" id="form1">

<input name="baojin" type="text" id="baojin" />
<input type="submit" name="Submit" value="提交" />
</form>

xianshi.asp
.... dim baojin
baojin=Request.form("baojin")
response.write(baojin)...
最后write显示为空baojin为空
anjing5566 2008-12-01
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 g125989100 的回复:]
你怎么获取的??
<form name="form1" method="post" action="?action=yes">
<input type="text" name="a" id="a" />
<input type="submit" name="button" id="button" value="提交" />
</form>
<%
if request.QueryString("action")="yes" then
response.write "表单post传值::::"request.form("a")'看看有值没
end if
%>
[/Quote]

同上,建议把你的代码贴出来看看
Dogfish 2008-12-01
  • 打赏
  • 举报
回复
你的传递方式是什么。在form里,method要指定是post才行。
virgo2008 2008-12-01
  • 打赏
  • 举报
回复
Post要用到form 将整个数据打包发送的!
不耐烦 2008-12-01
  • 打赏
  • 举报
回复
你怎么获取的??
<form name="form1" method="post" action="?action=yes">
<input type="text" name="a" id="a" />
<input type="submit" name="button" id="button" value="提交" />
</form>
<%
if request.QueryString("action")="yes" then
response.write "表单post传值::::"request.form("a")'看看有值没
end if
%>
charles27823349 2008-12-01
  • 打赏
  • 举报
回复
就是接受用post方法提交的数据时,显示为空
jbj001 2008-12-01
  • 打赏
  • 举报
回复
兄弟说详细点啊。我们表单提交的时候不是多是post吗。
ZKM_ZHANG 2008-12-01
  • 打赏
  • 举报
回复
POST要有FORM
charles27823349 2008-12-01
  • 打赏
  • 举报
回复
请高手指点一下 为什么啊

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧