3Webpage to a Database_did_mat2_1 variant

  • docx
  • 09.05.2020
Публикация на сайте для учителей

Публикация педагогических разработок

Бесплатное участие. Свидетельство автора сразу.
Мгновенные 10 документов в портфолио.

Иконка файла материала 3Webpage to a Database_did_mat2_1 variant.docx

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>