当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·不知道这个算不算php的bug    »显示摘要«
    摘要: 请看: http://www.php.net/ http://www.php.net/index.php/ http://www.php.net/index.php/index.php/ http://www.php.net/index.php/index.php/index.php/ 可以不停地加下去 不知道这算不算php的bug ......
 ·这个xsl怎么写    »显示摘要«
    摘要: xml的数据是: <data> <stock>aaa</stock> <exchange>nasdaq</exchange> </data> 我的xsl要实现下面的html的效果: <img src="/script/showimage.asp?stock=aaa&exchange=nasdaq......


复杂问题,近来一看,在线等待

有这样一个问题:  
  1.htm有一个表单,按纽onclick="qwe()",qwe()是JavaScript函数,qwe()实现取得表单内容,并放在变量中,再执行action="check.cgi",  
  check.cgi的内容没法改变,现在要求在传送的过程中将数据截留并保存到一个文件中,并不能影响向check.cgi传送数据.请问如何实现?

NO.1   作者: wanghr100

测试通过,不过会有安全性警告,因为在客户端的JavaScript.  
   
  <script>  
  function   qwe()  
  {  
        var   fso,   f,   r;  
        var   ForReading   =   1,   ForWriting   =   2;  
        var   u=document.wang.username.value;  
        fso   =   new   ActiveXObject("Scripting.FileSystemObject");  
        f   =   fso.OpenTextFile("c:\\myfile.txt",   ForWriting,   true);  
        f.Write(u);  
        f.Close();  
        f   =   fso.OpenTextFile("c:\\myfile.txt",   ForReading);  
        r   =   f.ReadLine();  
        return(r);  
        document.wang.submit();    
   
  }  
  </script>  
  <body>  
  <form   method="POST"    
   
  action="http://localhost/Program/javascript/check.asp"    
   
  name="wang">  
  <input   type=text   name=username>  
  <input   type=submit   value="灰豆宝宝.net"   onclick="qwe()">  
  </form>  
  </body>  
 


    摘要: 如题,不知道新浪现在的主页文件名是什么 有谁知道? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE