首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

asp的小疑点,

2012-04-03 
asp的小问题,在线等!怎么把form中的值提交给后面的页面formmethod post action a.asp?text1h1&text

asp的小问题,在线等!
怎么把form中的值提交给后面的页面
<form   method= "post "   action= "a.asp?text1=h1&text2=h2 ">
<input   type= "text "   name= "h1 ">
<input   type= "text "   name= "h2 ">
</form>
action后面是这么写吗?

[解决办法]
你提交后的页面可以获取到参数
request( "h1 ")
request( "h2 ")
[解决办法]
<form method= "post " action= "a.asp ">
<input type= "text " name= "h1 ">
<input type= "text " name= "h2 ">
</form>
就这样写就行了


在a.asp页中用
a=request.form( "h1 ")
b=request.form( "h2 ")
将提交值存放于a,b两个变量中,以后就用a,b就可以了

热点排行