Advertisement
Raihanulkarim5

form.php

Sep 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.77 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5. if (isset($_SESSION['username'])){
  6.     header("Location: http://localhost/Login_form.php/form_valid.php");
  7. }
  8.  
  9. ?>
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. <!DOCTYPE html>
  21. <html>
  22.     <head>
  23.         <title></title>
  24.        
  25.         <style >
  26.            
  27.             *{
  28.     margin:0 auto;
  29.     outline:0;
  30.     padding:0;
  31.     font-family:arial;
  32.  
  33. }
  34. body {
  35.    
  36.     width: 1000px;
  37.     background: #383846;
  38.     font-color:white;
  39. }
  40. .header {
  41.     height: 100px;
  42.     background: linear-gradient(#7088AA,#BEBA5F);
  43.     text-align: center;
  44.    
  45.     border-bottom: 3px solid #C3C5C5;
  46.     color:white;
  47. }
  48. .header h1 {
  49.     font-size: -webkit-xxx-large;
  50.     border: saddlebrown;
  51.     width: 210px;
  52.    
  53. }
  54. .Maincontent{
  55. min-height:400px;
  56. padding:20px;
  57.  
  58.  
  59. }
  60. .Maincontent h2 {
  61.     color: white;
  62.     padding: 3px;
  63.     text-align: center;
  64.     margin: 26px;
  65.     padding-left: 74px;
  66.     border-bottom: 1px solid #B2B26B;
  67. }
  68. .footer {
  69.     height: 100px;
  70.     background: linear-gradient(#7088AA,#BEBA5F);
  71.     text-align: center;
  72.     font-family: cursive;
  73.     border-bottom: 3px solid #575959;
  74. }
  75. .footer p{}
  76. .footer h1{font-size: -webkit-xxx-large;
  77.     border: saddlebrown;
  78.     width: 210px;
  79.     }
  80.  
  81.         </style>>
  82.     </head>
  83.     <body>
  84.         <div class="header">
  85.             <h2>Header</h2>
  86.         </div>
  87.        
  88.        
  89.         <div class="Maincontent">
  90.             <h2>Log-in Form:</h2>
  91.  
  92.  
  93.  
  94. <form action="form_valid.php" method="post">
  95. <table>
  96.              <tr>
  97.                 <td>
  98.                     Username:
  99.                 </td>
  100.                 <td>
  101.                     <input type="text" name="username"/>
  102.                 </td>
  103.              </tr>
  104.              
  105.               <tr>
  106.             <td>Password:</td>
  107.                 <td><input type="Password" name="password"/></td>
  108.             </tr>
  109.              <tr>
  110.                 <td></td>
  111.                 <td><input type="submit"  Value="Submit"/>
  112.                 <input type="Reset"  Value="Reset"/></td>
  113.             </tr>
  114.              
  115.  
  116.             </table>
  117.             </form>
  118.         </div>
  119.        
  120.         <div class="footer">
  121.             <h2>footer</h2>
  122.  
  123.         </div>
  124.    
  125.     </body>
  126.  
  127. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement