Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -test.html-----------------------
- <form action="b.php" method="GET">
- <input type="text" name="first" />
- <input type="text" name="last" />
- <input type="text" name="id" />
- <input type="text" name="salary" />
- <input type="submit" />
- </form>
- -b.php---------------------------
- <?php
- if(!(isset($_GET['first']))) {
- die("<h1>FAIL</h1>");
- }
- if(!(isset($_GET['last']))) {
- die("<h1>FAIL</h1>");
- }
- if(!(isset($_GET['id']))) {
- die("<h1>FAIL</h1>");
- }
- if(!(isset($_GET['salary']))) {
- die("<h1>FAIL</h1>");
- }
- $request = $_GET;
- ?>
- <html>
- <body>
- <?php
- echo <<<EOD
- Hello ${request['first']} ${request['last']}.<br />
- Your Identification Number is ${request['id']},
- and you make \$${request['salary']}.
- EOD;
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement