i been working in the login code .. it works fine except this message that appears when openenig the login page !!
Notice: Undefined index: msg in C:\xampp\htdocs\thesite\login.php on line 103
it has appeard when i typed this in loginExcution.php
else {
//Login failed
header("location:login.php? msg=*invalid name or password");
exit();
}
and this to show the message in the login form page
<?php
$msg = $_GET['msg'];
print $msg;
?>
Don’t put spaces in your
header("Location:.EDIT: The
%20s are actually spaces. Look at the PHP functionurlencode()if you want more info. The code above is equivalent to this: