首页 > 编程语言 > 详细

前台技术--通过javaScript提交表单

时间:2015-12-31 12:10:18      阅读:179      评论:0      收藏:0      [点我收藏+]

window.location=pp+"?username="+getCookie("username")+"&userid="+getCookie("userid");

替换


document.write("<form action="+pp+" method=post name=formx1 style='display:none'>");
document.write("<input type=hidden name=username value='"+getCookie("username")+"' />");
document.write("<input type=hidden name=userid value='"+getCookie("userid")+"' />");
document.write("</form>");
document.formx1.submit();



前台技术--通过javaScript提交表单

原文:http://www.cnblogs.com/bhlsheji/p/5090956.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!