Didactical material
Name __________________ Class ______________________
Objective: 10.3.3.3 link a webpage to a database
1. If the form in the white section below gets submitted, how can you, in welcome.php, output the value from the "first name" field?
<form action="welcome.php" method="get">
First name: <input type="text" name="fname">
</form>
<html>
<body>
Welcome <?php echo ___________________; ?>
</body>
</html>
2. 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 _________________; ?>
</body>
</html>
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.