Hi, i'm under win2000 using iis5.
I was written 2 files:
1) index.php
2) dbase.php
------------------index.php--------------------
<?php
session_start();
error_reporting(E_ALL ^ E_NOTICE);
if( $submit ){
if (isset($user_id)) {// $user_id is the text filed from form
session_register("userid");
$GLOBALS["userid"]=$user_id;
if( strcmp($user_pass,"opengate")==0 ){
header("Location: http://hujiadmin/dbase.php");
exit;
}
}
}
?>
...
...
<form name="login_form" method="post" action=<?php echo "\"$PHP_SELF\""?>>
...
...
...
</form>
...
----------------------end index.php-------------
----------------dbase.php----------------
<?php
session_start();
if(!isset($GLOBALS["userid"])){
header("Location: http://hujiadmin/index.php");
exit;
}else
echo "welcome ".$GLOBALS["userid"];
?>
-----------------end dbase.php------------------
WHAT'S THE PROBLEM WITH GLOBALS VARIABLES ???
The echo from dbase.php isn't printing nothink 🙁(((((((((
Help pls