A.html通过post数据到B.html后,B.html如何取值。 20

以下是a.html的代码,求b.页面的取值代码。要具体代码,谢谢。<body><formname="logingo"method="post"action="b.html... 以下是a.html的代码,求b.页面的取值代码。
要具体代码,谢谢。
<body>
<form name="logingo" method="post" action="b.html">
<input type="hidden" name="user" value="admin">
<input type="hidden" name="pwd" value="123456">
</form>

<script type="text/javascript">
document.forms['logingo'].submit();
</script>

</body>
展开
 我来答
李晓友159
2017-01-23 · TA获得超过114个赞
知道小有建树答主
回答量:224
采纳率:0%
帮助的人:47.1万
展开全部
getRequestParameter("user");
getRequestParameter("pwd");
更多追问追答
追问
这样吗?我试了不行。哪里错了?

document.getElementById("txt").value=getRequestParameter("user");

追答
不是,你说的后台是java还是什么,如果只有js的话是取不到值的
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式