Guest User

dffhgdh

a guest
Jul 6th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. HTML FORM
  2.  
  3. <html>
  4.  
  5. <head>
  6.  
  7. <title>My Form</title>
  8.  
  9. </head>
  10.  
  11. <body>
  12.  
  13. <form action="phpinfo.php" method=post>
  14.  
  15. My name is:
  16.  
  17. <br> <input type="text" name="YourName">
  18.  
  19. My favorite dirty word is:
  20.  
  21. <br /><input type="text" name="FavoriteWord">
  22.  
  23. <input type="submit" name="submit" value="That's Right!">
  24.  
  25. </form>
  26.  
  27. </body>
  28.  
  29. </html>
  30.  
  31. PHP FORM
  32.  
  33. <html>
  34.  
  35. <head>
  36.  
  37. <title>Perv!</title>
  38.  
  39. </head>
  40.  
  41. <?php
  42.  
  43. $YourName = $_POST['YourName'] ;
  44.  
  45. $FavoriteWord = $_POST['FavoriteWord'] ;
  46.  
  47. ?>
  48.  
  49. <body bgcolor="#FFFFFF" text="#000000">
  50.  
  51. <p>
  52.  
  53. Hi <?php print $YourName; ?>
  54.  
  55. <p>
  56.  
  57. You like the word <b> <?php print $FavoriteWord; ?>!?!</b>
  58.  
  59. <p>You oughta be ashamed of yourself!
  60.  
  61. </body>
  62.  
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment