0) { $d=mysql_fetch_array($r); // session_register("login_usrs"); // session_register("login_name"); $_SESSION['login_usrs']=$_POST['usrs']; $_SESSION['login_pswd']=$_POST['pswd']; $_SESSION['login_name']=$d['name']; $_SESSION['uid']=$d['uid']; // if ($_SESSION['login_usrs']=='eric'||$_SESSION['login_usrs']=='susan'||$_SESSION['login_usrs']=='ella') $q="select prgm.prgm_no as cand_prgm from prgm"; // else $q="select * from cand where cand_usrs='".$_POST['usrs']."'"; // $q="select * from cand where cand_usrs='".$_POST['usrs']."'"; // $rr=mysql_db_query("onature",$q); // while ($cand=mysql_fetch_array($rr)) { // if ($cand['cand_efg']=='1') { // $_SESSION['login_'.$cand['cand_prgm']]=$cand['cand_prgm']; // $_SESSION['login_'.$cand['cand_prgm'].'_'.'afg']=$cand['cand_afg']; // $_SESSION['login_'.$cand['cand_prgm'].'_'.'mfg']=$cand['cand_mfg']; // $_SESSION['login_'.$cand['cand_prgm'].'_'.'dfg']=$cand['cand_dfg']; // $_SESSION['login_'.$cand['cand_prgm'].'_'.'pfg']=$cand['cand_pfg']; // } // } header("location:../man/index.php"); exit; } else $err=true; } ?> eson 登入
義雄貿易  
帳號
密碼