Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if (isset($_SESSION['username'])){
- header("Location: http://localhost/Login_form.php/form_valid.php");
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <style >
- *{
- margin:0 auto;
- outline:0;
- padding:0;
- font-family:arial;
- }
- body {
- width: 1000px;
- background: #383846;
- font-color:white;
- }
- .header {
- height: 100px;
- background: linear-gradient(#7088AA,#BEBA5F);
- text-align: center;
- border-bottom: 3px solid #C3C5C5;
- color:white;
- }
- .header h1 {
- font-size: -webkit-xxx-large;
- border: saddlebrown;
- width: 210px;
- }
- .Maincontent{
- min-height:400px;
- padding:20px;
- }
- .Maincontent h2 {
- color: white;
- padding: 3px;
- text-align: center;
- margin: 26px;
- padding-left: 74px;
- border-bottom: 1px solid #B2B26B;
- }
- .footer {
- height: 100px;
- background: linear-gradient(#7088AA,#BEBA5F);
- text-align: center;
- font-family: cursive;
- border-bottom: 3px solid #575959;
- }
- .footer p{}
- .footer h1{font-size: -webkit-xxx-large;
- border: saddlebrown;
- width: 210px;
- }
- </style>>
- </head>
- <body>
- <div class="header">
- <h2>Header</h2>
- </div>
- <div class="Maincontent">
- <h2>Log-in Form:</h2>
- <form action="form_valid.php" method="post">
- <table>
- <tr>
- <td>
- Username:
- </td>
- <td>
- <input type="text" name="username"/>
- </td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input type="Password" name="password"/></td>
- </tr>
- <tr>
- <td></td>
- <td><input type="submit" Value="Submit"/>
- <input type="Reset" Value="Reset"/></td>
- </tr>
- </table>
- </form>
- </div>
- <div class="footer">
- <h2>footer</h2>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement