D - Login

Create a Secret Agent Login website that allows a user to enter their login details.

The website should:

  • Ask the user to enter a username
  • Ask the user to enter a password
  • Send the login details to login.php using the POST method
  • Retrieve the username and password using $_POST
  • Use an IF statement to check if the username and password are correct
  • Display Access Granted and a secret mission if both are correct
  • Include the username in the secret mission
  • Display Access Denied if either detail is incorrect
  • Provide a link to try again if access is denied
Username:
<input type="text" name="username">
<br><br>

Password:
<input type="password" name="password">
<br><br>
if(condition)
{

}
else
{

}
  • == means is equal to
  • && means AND