I am trying to make a Login Page. The code has an if clause, which will check if the data provided is correct or incorrect. To do this, I've made a querystring "?e=2" which will be used to display an error, this should execute only when there's a querystring, but that is not happening. I'm getting an error. How can I keep this check in the code but skip this if there is no querystring.
Notice: Undefined index: e in /storage/ssd3/126/12156126/public_html/user_login.php on line 18
Here is that part of the code:
<?php
if($_GET["e"] == 2) {
echo "<table align=\"center\" class=\"login_error\"><tr><td>";
echo "Username or Password is incorrect. Please try again";
echo "</td></tr></table>";
}
?>