不行啊,问题是结局饿了,但是输入帐号密码后,页面却一片空白
url显示是http://www.zhaoce.com/adcp/ver.php?action=login为什么呢?

解决方案 »

  1.   

    弱弱的问一下
    $rs.eof是什么东东啊
      

  2.   

    login.htm <form     name=form   method= "POST"   action= "ver.php?action=login"   > 
    <input   type= "text"   name= "ausername"   > 
    <input   type= "password"   name= "apassword"> 
    <input   type= "submit"   value= "Login"   name= "submit"> ver.php switch   ($_GET['action']){ 
    case   "login": 
    $strusername= $_POST( 'ausername'); 
    $strpassword= $_POST( 'apassword'); 
    if   ($strusername== "")     { 
    echo   " <Script> window.alert( 'Miss   Email! ');history.go(-1); </Script> "; 

    elseif   ($strpassword== ""){ 
    echo   " <Script> window.alert( 'Miss   Password! ');history.go(-1); </Script> "; 

    else{ 
    require_once( "../conn.php "); 
    $exec= "select   *   from   zc_admin   where   ausername= '".$strusername."' "; 
    $result=mysql_query($exec)   or   die(mysql_errno. '- '.mysql_error()); 
    $rs=mysql_fetch_object($result); 
    //echo   $exec; 
    //exit(); 
    if   (mysql_num_rows($result)==0)   { 
    echo   " <Script> window.alert( 'Wrong   Email! ');javascript:history.back(1); </Script> "; 

    elseif   ($rs->apassword <> $strpassword){ 
    echo   " <Script> window.alert( 'Wrong   Password! ');javascript:history.back(1); </Script> "; 

    else{ 
    //$session( "admin ")= "$_POST( 'UserEmail ') "; 
    //$session( "passport ")   =   "$_POST( 'UserEmail ') "; 
    echo   "AllPost.php "; 


    break; 
    case   "logout": 
    //session( "admin ")== ""; 
    echo   " <Script> window.alert( 'Goodbye!!! ');location.replace( 'index.htm '); </Script> "; 
    break; 
      

  3.   

    还是错误啊,我按上面兄弟的修改
    可是还是错误
    错误提示是Fatal error: Call to undefined function: array() in /home/content/html/adcp/ver.php on line 4
    $strusername= $_POST( 'ausername'); 这个就是第四行啊...
      

  4.   

    晕了~还有这样的人……告诉你了~~你把所有的数组都写错了 
    # $strusername=   $_POST(   'ausername '); 
    # 这个就是第四行啊... 
    # 这个当然要改成
    $strusername = $_POST['ausername']; 
    #键是放在‘中括号‘里的,不是’括号‘里的……
      

  5.   

    嗬嗬,LZ需要好好地看一看PHP的手册,看来还是一个新手。
    这些都是基本的东西,看了手册,会立刻明白的。数组对象的操作,不是很复杂的。还有另外一个提醒你一下,你的登陆画面,用了POST的方法,结果ACTION里面却用了GET类型的参数。
    可以的话,统一起来,比较合适。不要到时候把自己都忽悠了。赫赫。
      

  6.   

    既然LZ都是lovephp的,还是001,就多花点时间好好学习一下吧。
    没有掉下来的馅饼的。