Advertisement
Guest User

user input/output

a guest
Mar 31st, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. if (isset($_GET['Submit'])) {
  3. $userID = $_GET['userID'];
  4. $input2 = $_GET['input2'];
  5. $input3 = $_GET['input3'];
  6. ?>
  7. www.example.com/<?php echo $userID; ?><br/>
  8. hello, <?php echo $input2; ?> and <?php echo $input3; ?>.
  9. <?php } else {
  10. ?>
  11. <form action="./" method="get">
  12. <input type="text" name="userID"/><br/>
  13. <input type="text" name="input2"/><br/>
  14. <input type="text" name="input3"/><br/>
  15. <input type="submit" name="Submit" value="Submit"/>
  16. </form>
  17. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement