nerdexam
Zend

200-530 · Question #50

You have the following code in the welcome.html file: <form action="welcome.php" method="post"> Your Name: <input type="text" name="fname" /> Your Girl Friend Name: <input type="text" name="fname"…

The correct answer is E. Welcome Maria and Maria! See the full explanation below for the reasoning.

Question

You have the following code in the welcome.html file: <form action="welcome.php" method="post"> Your Name: <input type="text" name="fname" /> Your Girl Friend Name: <input type="text" name="fname" /> <input type="submit" /> </form> The PHP code of the welcome.php file is as follows: Welcome <?php echo $_POST["fname"];?> and <?php echo $_POST["fname"];?>! What will be the output if you give your name as John and your girlfriend's name as Maria?

Exhibits

200-530 question #50 exhibit 1
200-530 question #50 exhibit 2

Options

  • AWelcome Maria and John!
  • BThe script will return an error.
  • CWelcome John and Maria!
  • DWelcome John and John!
  • EWelcome Maria and Maria!

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    14% (3)
  • C
    5% (1)
  • E
    77% (17)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice