Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. if(!(isset($_GET['first'])) {
  3. die("<h1>FAIL</h1>");
  4. }
  5. if(!(isset($_GET['last'])) {
  6. die("<h1>FAIL</h1>");
  7. }
  8. if(!(isset($_GET['id'])) {
  9. die("<h1>FAIL</h1>");
  10. }
  11. if(!(isset($_GET['salary'])) {
  12. die("<h1>FAIL</h1>");
  13. }
  14. $request = $_GET;
  15. ?>
  16. <html>
  17. <body>
  18. <?php
  19. echo <<<EOD
  20. Hello ${request['first']} ${request['last']}.<br />
  21. Your Identification Number is ${request['id']},
  22. and you make \$${request['salary']}.
  23. EOD;
  24. ?>
  25. </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement