how to fix error “Undefined index: problem” in this code??
<html>
<head>
<title>Login page</title>
</head>
<body bgcolor=”aqua”>
<h1> Login page </h1>
<?php
$problem = $_GET[‘problem’];
$errormsg =”<font color=’red’> ERROR : “;
if ($problem == “invalidUser”) {$errormsg = $errormsg . ” invalid user!!”;}
if ($problem == “invalidPassword”) {$errormsg = $errormsg . ” invalid password!!”; }
if ($problem == “notLoggedIn”) {$errormsg = $errormsg . “you are not logged in”;}
$errormsg = $errormsg. “</font>”;
if ($problem !=””) {print($errormsg);}
?>
<form id=”forml” name=”forml” method=”post” action=”checkLogin.php”>
<p>
<label for=”email”>Email</label>
<input type=”text” name=”email” id=”email” />
<label for=”password”>Password</label>
<input type=”text” name=”password” id=”password” />
<input type=”submit” name=”loginButton” id=”loginButton” value=”Login” />
</p>
</form>
</body>
</html>