Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $no1=0;
- $no2=0;
- if(isset($_GET['sub']))
- {
- $no1=$_GET['no1'];
- $no2=$_GET['no2'];
- }
- ?>
- <html>
- <style>
- body
- {
- background-image:url('backgrounds/28.jpg');
- background-size:100% 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:50px;
- text-align:center;
- }
- .l
- {
- background-color:black;
- color:white;
- width:100%;
- font-size:30px;
- text-align:center;
- }
- </style>
- <body>
- <h1>TASK - 6</h1>
- <br><br><br>
- <br><br><br><br>
- <form >
- <table align="center" cellspacing="20" width="40%">
- <tr>
- <td>
- <label class="l">No 1</label>
- </td>
- <td>
- <input type="text" name="no1" placeholder="Enter no" class="l"
- value="<?php echo $no2;?>">
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" class="l" value="↿ swap ⇂" name="sub">
- </td>
- </tr>
- <tr>
- <td>
- <label class="l">No 2</label>
- </td>
- <td>
- <input type="text" name="no2" placeholder="Enter no" class="l"
- value="<?php echo $no1;?>">
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement