<<< Previous question <<< Question ID#0283.md >>> Next 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 <?= $_POST["fname"];?> and <?= $_POST["fname"];?>!
What will be the output if you give your name as John and your girlfriend's name as Maria?
- A) Welcome Maria and Maria!
- B) Welcome John and John!
- C) Welcome Maria and John!
- D) Welcome John and Maria!
Answer
Answer: A