Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $sellamount = $_POST["sellamount"];
- $sellto = $_POST["sellto"];
- if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
- ?>
- <html>
- <head>
- <title>Personal INFO</title>
- </head>
- <body>
- <form method="post" action="<?php echo $PHP_SELF;?>">
- <input type="radio" value="to dirty cops" name="sellto" /><label
- for="dirtycops">Sell</label> <input type="number" size="3" maxlength="5"
- name="sellamount">oz to dirty cops.<br />
- <input type="radio" value="to crack heads" name="sellto" /><label
- for="crackheads">Sell</label> <input type="text" size="3" maxlength="5"
- name="sellamount">oz to crack heads.<br />
- <input type="radio" value="to some hookers" name="sellto" /><label
- for="hookers">Sell</label> <input type="text" size="3" maxlength="5"
- name="sellamount">oz to hookers.<br />
- <input type="radio" value="to some player" name="player" /><label
- for="player">Sell</label> <input type="number" size="3" maxlength="5"
- name="sellamount">oz to <input type="text" size="12" maxlength="12" name="name">
- <br />
- <br />
- <input type="submit" value="Submit" name="submit">
- </form>
- <?
- } else {
- echo "You sold ".$sellamount."oz of rock ".$sellto.".<br />";
- }
- ?>
Add Comment
Please, Sign In to add comment