Script 15.8
Login
For testing purposes:
Email address = email@example.com
Password = testpass
Email address = email@example.com
Password = testpass
<!-- Script 15.8 - login.php --> <h1>Login</h1> <div>For testing purposes: <br />Email address = email@example.com <br />Password = testpass</div> <hr /> <p id="results"></p> <form action="<?php echo htmlentities( $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'] ); ?>" method="post" id="login"> <p id="emailP"> <label for="email">Email Address</label> <input type="text" name="email" id="email" /> <span class="errorMessage" id="emailError">Please enter your email address!</span> </p> <p id="passwordP"> <label for="password">Password</label> <input type="password" name="password" id="password" /> <span class="errorMessage" id="passwordError">Please enter your password!</span> </p> <p> <input type="submit" name="submit" value="Login!" /> </p> </form>