Advertisement
Aniket_Goku

task4

Jun 14th, 2021
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <?php
  2.     $t=0;  
  3.     if(isset($_GET['login']))
  4.     {  
  5.         $pass =$_GET['ps'];
  6.         if($pass==120)
  7.         {
  8.             header('location:welcome.php?un='.$_GET['un']);
  9.         }
  10.         else
  11.         {
  12.             echo '<script>
  13.                 alert("Password is Wrong");  
  14.                 </script>';
  15.             $t=0;
  16.         }
  17.     }
  18.    
  19.     ?>
  20. <html>
  21.     <style>
  22.         body
  23.         {
  24.             background-image:url('backgrounds/62.jpg');
  25.             background-size:100% ;
  26.             background-attachment:fixed;
  27.             backdrop-filter:blur(3px);
  28.             background-repeat:no-repeat;
  29.             margin:0;padding:0;height:150%;
  30.        
  31.         }
  32.         h1
  33.         {
  34.             background-color:black;
  35.             color:white;
  36.             font-family:supernatural knight;
  37.             font-size:40px;
  38.             text-align:center; 
  39.             opacity:0.5;
  40.         }
  41.         h2
  42.         {
  43.             color:white;
  44.             background-color:black;
  45.             text-align:center;
  46.             font-size:40px;
  47.         }
  48.         .l
  49.         {
  50.             color:white;
  51.             background-color:black;
  52.             text-align:center;
  53.             font-size:20px;
  54.             text-align:center;
  55.         }
  56.     </style>
  57.     <body>
  58.         <h1>TASK - 4</h1>
  59.         <br><br><br>
  60.         <h2 >Log in</h2>
  61.         <br><br><br><br>
  62.         <form name="f1" action="" >
  63.             <table align="center" cellspacing="20" width="30%">
  64.                 <tr>
  65.                     <td>
  66.                         <label class="l">User Name</label>
  67.                     </td>
  68.                     <td>
  69.                         <input class="l"type="textbox" placeholder="User name" name="un">
  70.                     </td>
  71.                 </tr>
  72.                 <tr>
  73.                     <td>
  74.                         <label class="l">Password</label>
  75.                     </td>
  76.                     <td>
  77.                         <input class="l"type="text" placeholder="Password" name="ps">
  78.                     </td>
  79.                 </tr>
  80.                 <tr>
  81.                     <td align="center" colspan="2">
  82.                         <input class="l" name="login" style="width:100%" type="submit" value="login" >
  83.                     </td>
  84.                 </tr>
  85.             </table>
  86.         </form>
  87.     </body>
  88. </html>
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement