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
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)- A5% (1)
- B14% (3)
- C5% (1)
- E77% (17)
Community Discussion
No community discussion yet for this question.

