Jeremy Conwell
New member
I just re-installed XAMPP and I'm getting an error that I've never gotten before.
Notice: Undefined index: username in C:\xampp\htdocs\acc_terminator\unicode.php on line 3
Notice: Undefined index: password in C:\xampp\htdocs\acc_terminator\unicode.php on line 4
Notice: Undefined index: account_level in C:\xampp\htdocs\acc_terminator\unicode.php on line 5
Those lines are:
$xusername = $_SESSION['username'];
$xpassword = $_SESSION['password'];
$xaccount_level = $_SESSION['account_level'];
Of course they aren't set...
They are set when the user logs in
And instead of having to write if($_POST['username']) i can just write if($xusername)
Notice: Undefined index: username in C:\xampp\htdocs\acc_terminator\unicode.php on line 3
Notice: Undefined index: password in C:\xampp\htdocs\acc_terminator\unicode.php on line 4
Notice: Undefined index: account_level in C:\xampp\htdocs\acc_terminator\unicode.php on line 5
Those lines are:
$xusername = $_SESSION['username'];
$xpassword = $_SESSION['password'];
$xaccount_level = $_SESSION['account_level'];
Of course they aren't set...
They are set when the user logs in
And instead of having to write if($_POST['username']) i can just write if($xusername)