get 类用 $HTTP_GET_VARS 或 $_GET

解决方案 »

  1.   

    你打开php.ini,找register_globals ,把它的值改为On
      

  2.   

    怎么不行啊,我已经restart了apache的了,不会要我再restart机器吧?看来要晚上有空再试了
      

  3.   

    register_globals = On
    应该可以解决问题!
      

  4.   

    我改过来还是不行。试一下程序:
    if($Submit){
    echo $chrUsername."<br>";
    echo $chrPassword."<br>";
    }
    ?>
      <form name="form1" method="post" action="login.php">
      用户名:<input type="text" name="chrUsername" size="20" maxlength="20">
      密 码:<input type="password" name="chrPassword" size="20" maxlength="20">
       <input type="submit" name="Submit" value="提交">
      </form>没有输出!