社区
ASP
帖子详情
为什么asp只能用get提交,不能用post
charles27823349
2008-12-01 08:32:33
如题
...全文
177
18
打赏
收藏
为什么asp只能用get提交,不能用post
如题
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用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
打赏
举报
回复
请高手指点一下 为什么啊
表单
提交
中get和
post
的区别
表单
提交
中get和
post
的区别 表单
提交
中get和
post
的区别
c# 运用get/
post
和使用webservice
c# 运用get/
post
和使用webservicec# 运用get/
post
和使用webservicec# 运用get/
post
和使用webservicec# 运用get/
post
和使用webservice
ASP
.NET Get和
Post
两种
提交
方法浅析
表单form的
提交
有两种方式,一种是get的方法,一种是
post
的方法.看下面代码,理解
ASP
.NET Get和
Post
两种
提交
的区别:
Get 与
Post
NULL 博文链接:https://songjg2010.iteye.com/blog/1751169
ajax快速解决参数过长无法
提交
成功的问题
查了很多资料都说,get方法的参数是有限制的,
post
方法的参数的长度是无限制,这也是
post
相比get的优势一直。 在ajax中使用
post
方法,用常规的参数格式:param1=a1¶m2=a2 ,当参数长度过长时,依然
提交
不成功。比如我们经常这样写一个ajax的
post
请求: $.ajax({ type: "
post
", //
post
or get contentType:"application/json;charset=utf-8", data: “requestTag=”+tag+"&content="+content, //请求参数 url: "po
ASP
28,409
社区成员
356,971
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章