Login Successful after step 2 below.
Logout"; } elseif(!empty($_POST['username']) && !empty($_POST['password'])) { echo "If login successful, it will move to step 3. Member Area.
"; echo "If login failed, it will move to Step 1. Login Form Area.
"; $username = $_POST['username']; //collect value of input field $password = $_POST['password']; //collect value of input field if (($username != "test") || ($password != "test")) { echo "please click here to try again.
"; } else { ?>First Visiting time, Authentication failed including empty username or password.
When you click submit button, it will go step 2. processing.