表单添加ip和url 和当前时间
<form name="form" action="http://test.dede.com/plus/diy.php" method="post" onsubmit="return get_on505()"> <!---------------------------------------------------------------------------------------------------> <input name="url" type="hidden" id="url"> <input name="ip" type="hidden" id="ip"> <input name="tjtime" type="hidden" id="tjtime"> <!---------------------------------------------------------------------------------------------------> <!--获取当前链接和用户ip和时间--> <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script language="javascript"> document.getElementById('url').value=window.location.href; document.getElementById('ip').value=returnCitySN["cip"]+','+returnCitySN["cname"]; document.getElementById('tjtime').value = new Date(); var datas=new Date(); document.getElementById('tjtime').value = datas.getFullYear()+"-"+(datas.getMonth()+1)+"-"+datas.getDate()+" "+datas.getHours()+":"+datas.getMinutes()+":"+datas.getSeconds(); </script> <!---------------------------------------------------------------------------------------------------> 提交时间 tjtime 提交ip ip 预约url url
转载请注明出处: 欢迎留言或qq(1090413588)交流
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步