Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML FORM
- <html>
- <head>
- <title>My Form</title>
- </head>
- <body>
- <form action="phpinfo.php" method=post>
- My name is:
- <br> <input type="text" name="YourName">
- My favorite dirty word is:
- <br /><input type="text" name="FavoriteWord">
- <input type="submit" name="submit" value="That's Right!">
- </form>
- </body>
- </html>
- PHP FORM
- <html>
- <head>
- <title>Perv!</title>
- </head>
- <?php
- $YourName = $_POST['YourName'] ;
- $FavoriteWord = $_POST['FavoriteWord'] ;
- ?>
- <body bgcolor="#FFFFFF" text="#000000">
- <p>
- Hi <?php print $YourName; ?>
- <p>
- You like the word <b> <?php print $FavoriteWord; ?>!?!</b>
- <p>You oughta be ashamed of yourself!
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment