建立一个名为yz.php的页面
复制代码 代码如下:
require_once('Auth.php');
function show_login_form () {
echo '
登录后的session传递的页面yzh.php
复制代码 代码如下:
function back(){
echo '
back';
}
require_once('Auth.php');
$auth=new Auth('DB',$option,'back');
$auth->start();
if($auth->checkAuth())
{
echo "this is a session page,welcome ";
echo "{$auth->getUserName()}";
}
?>
http://www.bkjia.com/PHPjc/321216.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/321216.htmlTechArticle建立一个名为yz.php的页面 复制代码 代码如下: ?php require_once('Auth.php'); function show_login_form () { echo 'form method="post" action="yz.php" pusername:input ty...