Login Form

CODE
<?php
//This variable will determine what if any messages will display on the login page based on how the user is sent to this page
$return= $_GET['return'];
?>
<!--This form will post the username and password fields to the login process page-->
<form name="login_form" method="post" action="process_login.php">
<table>
  <tr>
	<td colspan="2">Please login</td>
  </tr>
  <tr>
	<td>Username</td><!--A field for the information given for the username-->
	<td><input type="text" name="username"/></td>
  </tr>
  <tr>
	<td>Password</td><!--A field for the information given for the password-->
	<td><input type="password" name="password"/></td>
  </tr>
  <tr>
	<td><!--A standard button to submit the form-->
	<input type="submit" name="Submit" value="Submit"/></td>
  </tr>
<?php
//the if/else statement will hide any extra messages that may appear on the login page until the required conditions are met to display the row (the conditions will vary based on how the user comes to the login page)
//if the value of "return" is equal to the value sent by the login process page then the login failed, and the user was sent back to this page to reenter the information
if($return=='1')
{
?>
  <tr>
	<td colspan="2">Your username or password is not correct. Please try again or contact tech support.</td>
  </tr>
<?php
} 
//if the value of "return" is equal to the value sent by the logout process page then the logout succeeded, and the user was sent to this page to reenter the information
elseif($return=='2')
{
?>
  <tr>
	<td colspan="2">You have successfully logged out.</td>
  </tr>
<?php
}
?> 
</table>
</form>
DISPLAY
Please login
Username
Password
Your username or password is not correct. Please try again or contact tech support.
You have successfully logged out.