执行什么函数?PHP的还是JS的?

解决方案 »

  1.   

    header("Location:check1.php");这个东东可以实现自动跳转功能,但是你说的那种情况用这个是实现不了的。这个函数只能用在没有在客户端输出任何数据之前!
      

  2.   

    #######test.html
    <script>
    function b()
    {
      if( document.all.a.value.length == 10 ){
          document.aa.target = "bb"
          document.aa.action = "test.php?s=1";
          document.aa.submit()
      }
    }
    </script>
    <iframe id="bb" name="bb" style="display:none"></iframe>
    <form method="post" name="aa">
    <textarea name=a cols=20 rows=2 onkeyup="b()">
    </textarea>
    </form>#########test.php
    function test1()
    {
            echo "<script>\n";
            echo " alert('hello')\n";
            echo "</script>";
    }
    if( $s == 1 ) test1();
      

  3.   

    <html>
    <script language="JavaScript">
    function b(){
      forums=document.aa;
      if (forums.a.value.length>=10){
    forums.submit();
    return false;
      }else{
    return true;
      }
    }
    </script>
    <form method="post" name="aa" action="save.php">
    <input type="text" name=a onkeyup="return b()">
    <input type="Submit" value="提交">
    </html>
      

  4.   

    如何才能把提交按钮隐藏啊?piner(nadmin 简称难民)的方法也试过了,就是<iframe id="bb" name="bb" style="display:none"></iframe>这句有问题,display:none这句话报错了,还望指教!
      

  5.   

    html 里有一个 hidden啊。