我有一个小问题,login.php
注册 myusername 和 mypassword.. 并重定向到index.php?bolum=panel
(控制面板)
登录.php:
session_start();
$_SESSION['myusername'] = $myusername;
$_SESSION['mypassword'] = $mypassword;
if(session_is_registered(myusername))
{
echo "<script> window.location.replace('index.php?bolum=panel') </script>";
}
和控制面板=> panel.php
<?php session_start(); ?>
Username: <?php echo $_SESSION['myusername']; ?> <br/>
Password: <?php echo $_SESSION['mypassword']; ?>
为什么它不起作用,我无法在panel.php
.