Menu
×
×
Correct!
Exercise:If the form in the white section below gets submitted, how can you, in welcome.php, output the value from the "first name" field?. Hint: The http method is not the same as in Exercise 1. <form action="welcome.php" method="post">
First name: <input type="text" name="fname">
</form>
<html>
<body>
Welcome <?php echo @(15); ?>
</body>
</html>
<form action="welcome.php" method="post">
First name: <input type="text" name="fname">
</form>
<html>
<body>
Welcome <?php echo $_POST["fname"]; ?>
</body>
</html>
<form action="welcome.php" method="post">
First name: <input type="text" name="fname">
</form>
<html>
<body>
Welcome <?php echo $_POST['fname']; ?>
</body>
</html>
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 47 exercises.
Are you sure you want to continue?