我也发一个自己写的
function panduan($_SESSION['pass'])//判断用户是否有权限进入一个页面
{if ($_SESSION['pass'])
{if($_SESSION['pass']==$pass)
{echo "<script language=javascript>alert('欢迎使用');";
echo"windwo.location.href='index.php';";//index.php为目标页面
echo"</script>";}
else
{echo "<script language=javascript>alert('无权使用');";
echo"windwo.location.href='index.php';";//index.php为目标页面
echo"</script>";
}
}
else
{echo "<script language=javascript>alert('没有此用户');";
echo"windwo.location.href='index.php';";//index.php为目标页面
echo"</script>";
}
}
function panduan($_SESSION['pass'])//判断用户是否有权限进入一个页面
{if ($_SESSION['pass'])
{if($_SESSION['pass']==$pass)
{echo "<script language=javascript>alert('欢迎使用');";
echo"windwo.location.href='index.php';";//index.php为目标页面
echo"</script>";}
else
{echo "<script language=javascript>alert('无权使用');";
echo"windwo.location.href='index.php';";//index.php为目标页面
echo"</script>";
}
}
else
{echo "<script language=javascript>alert('没有此用户');";
echo"windwo.location.href='index.php';";//index.php为目标页面
echo"</script>";
}
}
网络改变了我,编程改变了我的生活