Guest User

Untitled

a guest
Jun 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <?php
  2. $sellamount = $_POST["sellamount"];
  3. $sellto = $_POST["sellto"];
  4.  
  5. if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
  6. ?>
  7. <html>
  8. <head>
  9. <title>Personal INFO</title>
  10. </head>
  11. <body>
  12. <form method="post" action="<?php echo $PHP_SELF;?>">
  13. <input type="radio" value="to dirty cops" name="sellto" /><label
  14.  
  15. for="dirtycops">Sell</label> <input type="number" size="3" maxlength="5"
  16.  
  17. name="sellamount">oz to dirty cops.<br />
  18.  
  19. <input type="radio" value="to crack heads" name="sellto" /><label
  20.  
  21. for="crackheads">Sell</label> <input type="text" size="3" maxlength="5"
  22.  
  23. name="sellamount">oz to crack heads.<br />
  24.  
  25. <input type="radio" value="to some hookers" name="sellto" /><label
  26.  
  27. for="hookers">Sell</label> <input type="text" size="3" maxlength="5"
  28.  
  29. name="sellamount">oz to hookers.<br />
  30.  
  31. <input type="radio" value="to some player" name="player" /><label
  32.  
  33. for="player">Sell</label> <input type="number" size="3" maxlength="5"
  34.  
  35. name="sellamount">oz to <input type="text" size="12" maxlength="12" name="name">
  36. <br />
  37. <br />
  38. <input type="submit" value="Submit" name="submit">
  39. </form>
  40. <?
  41. } else {
  42. echo "You sold ".$sellamount."oz of rock ".$sellto.".<br />";
  43. }
  44. ?>
Add Comment
Please, Sign In to add comment