Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include("header.inc");?>
- <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><p class= "Instruction">Please login by entering your email address and password</p></td>
- </tr>
- </table>
- <form action="index.php" method="post">
- <table class="login">
- <tr>
- <td>
- <label for="email" class="Instruction">Email Address:</label>
- </td>
- <td>
- <input type="text" name="email" id="email" />
- </td>
- </tr>
- <tr>
- <td>
- <label for="password" class="Instruction">Password:</label>
- </td>
- <td>
- <input type="password" name="password" id="password" />
- </td>
- </tr>
- <tr>
- <td>
- <input type="submit" name="submit" value="Login" />
- </td>
- <td>
- <input type="reset" name="clear" value="Clear" />
- </td>
- </tr>
- </table>
- </form>
- <?php if(isset($_POST['submit']))
- {
- $email = preg_replace('/[^A-Za-z0-9 ]/','', $_POST['email']);
- $password = preg_replace('/[^A-Za-z0-9 ]/','',$_POST['password']);
- //$session_username = $_SESSION['username'];
- if(!$_POST['email'])
- {
- echo "Please enter a username <br/>";
- }
- if(!$_POST['password'])
- {
- echo"Please enter a password <br/>";
- }
- }
- ?>
- <?php include("footer.inc") ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement