All in one index login Template

Step 1. Login Form Area

First Visiting time, Authentication failed including empty username or password.

When you click submit button, it will go to Step 2.Processing.

*Use both UserName and Password as "test".
UserName:
Password:
Basic Business Logic if ..elseif...else structure: if ( checking authentication passed ) { Step3: Login successful case – member area (session_indexlphp portion) You may put auto(or manual) redirection to an independent page. } elseif ( check if username and password empty) { Step2. Authentication Area (login.php portion) to process authentication } else { Step 1. Login Form Area:(login.html portion) Fist time visiting, Fail authentication including empty username and password then clicked “Submit” }