Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $t=0;
- if(isset($_GET['login']))
- {
- $pass =$_GET['ps'];
- if($pass==120)
- {
- header('location:welcome.php?un='.$_GET['un']);
- }
- else
- {
- echo '<script>
- alert("Password is Wrong");
- </script>';
- $t=0;
- }
- }
- ?>
- <html>
- <style>
- body
- {
- background-image:url('backgrounds/62.jpg');
- background-size:100% ;
- background-attachment:fixed;
- backdrop-filter:blur(3px);
- background-repeat:no-repeat;
- margin:0;padding:0;height:150%;
- }
- h1
- {
- background-color:black;
- color:white;
- font-family:supernatural knight;
- font-size:40px;
- text-align:center;
- opacity:0.5;
- }
- h2
- {
- color:white;
- background-color:black;
- text-align:center;
- font-size:40px;
- }
- .l
- {
- color:white;
- background-color:black;
- text-align:center;
- font-size:20px;
- text-align:center;
- }
- </style>
- <body>
- <h1>TASK - 4</h1>
- <br><br><br>
- <h2 >Log in</h2>
- <br><br><br><br>
- <form name="f1" action="" >
- <table align="center" cellspacing="20" width="30%">
- <tr>
- <td>
- <label class="l">User Name</label>
- </td>
- <td>
- <input class="l"type="textbox" placeholder="User name" name="un">
- </td>
- </tr>
- <tr>
- <td>
- <label class="l">Password</label>
- </td>
- <td>
- <input class="l"type="text" placeholder="Password" name="ps">
- </td>
- </tr>
- <tr>
- <td align="center" colspan="2">
- <input class="l" name="login" style="width:100%" type="submit" value="login" >
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement