Zend PHP 5.3 Certification Exam


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
  • Question 21/26

    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?