日期:2014-05-17  浏览次数:20910 次

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就可以了