Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <?php
- if(isset($_POST["submit"]))
- {
- echo "Welcome".$_POST['name']."<br>";
- echo "You are ".$_POST['age']."Years old";
- }
- ?>
- <body>
- <form action="<?php $_PHP_SELF?>"method="POST";>
- NAME:<input type="text" name="name"/>
- <br>
- AGE:<input type="text" name="age"/>
- <br>
- <input type="submit" name="submit"/>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement