摘要:
setcookie("UserInfo_UserName",$_POST["userName"],time()+3600*1,"/");首先要建立cookie 引用cookie 引用时要在建立cookie的上方建立if条件句判断再引入cookie if($_COOKIE["UserInfo_User 阅读全文
摘要:
首先要判断是否用户名密码正确 if(...){ header("location:URL");URL是要跳转的网址! } 阅读全文
摘要:
$test_user=array("heihei","haha","good","best"); function fun(){ if($_POST && $_POST["userName"] &&in_array($_POST["userName"],$this->test_user)); } 在 阅读全文