<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