就是用javascriopt得到,然后自动提交

解决方案 »

  1.   

    <SCRIPT LANGUAGE=javascript>
    function test01(){
    var date_str=new Date()
    document.form1.test_str.value=date_str
    }
    </SCRIPT>
    <form name=form1 method="post" action="test.jsp">
    <input type=hidden name=test_str>
    </form>在test.jsp页面取test_str的值
      

  2.   

    <script language="javascript">
    var today today = new Date()
     today=today.toLocaleString().replace(/(年|月)/g, "/").replace(/日/, "");
    document.writeln("time==="+today)//today 即为客户端的时间
    </script>
      

  3.   

    根据客户端上传的报头来看,
    POST / HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
    Accept-Language: zh-cn
    Content-Type: multipart/form-data; boundary=---------------------------7d32c12b9016a
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0)
    Host: localhost:1024
    Content-Length: 684
    Connection: Keep-Alive
    Cache-Control: no-cache好像没有时间吧。
    所以只有像那几位仁兄写的用表单上传,不过也不用这么废时,你可以在客户端用javascript把它们整合成长整型的数。