怎么能显示admin.php页的内容
<?php
error_reporting(E_ALL & ~E_NOTICE);
include("conn.php");
if(isset($_GET[out]) && $_GET[out])
{
setcookie("cookie","out");
echo "<script language=\"javascript\">location.href='login.php';</script>";
}
if(isset($_POST['id'])&&$_POST[id]=='admin')
{
$pw=md5($_POST[pw]);
if($pw=='827ccb0eea8a706c4c34a16891f84e7b'){
setcookie("cookie","ok");
echo "<script language=\"javascript\">location.href='login.php';</script>";
}
}
include ("head.php");
if($_COOKIE['cookie']!='ok'){
?>
<SCRIPT language=javascript>
function Checklogin()
{
if(myform.id.value=="")
{
alert("请填写用户名");
myform.id.focus();
return false;
}
if(myform.pw.value=="")
{
alert("请填写密码");
myform.pw.focus();
return false;
}
}
</SCRIPT>
<form action="" method="post" name="myform" onsubmit="return Checklogin();">
ID:<input type="text" name="id"/><br>
PW:<input type="password" name="pw"/> <input type="submit" name="submit" value="登陆"/>
</form>
<?
}else{
?>
<a href="admin.php">回复删除留言</a>
<a href="?out=login">退出</a>
<?
}
?>
------解决方案--------------------
if($pw=='827ccb0eea8a706c4c34a16891f84e7b'){
12345....
你这个是什么页面? 什么叫显示admin.php的内容?
------解决方案--------------------