Please send questions to
st10@humboldt.edu .
<html>
<!-- welcome2.php
adapted from example from Ann Burroughs
adapted by: Sharon Tuttle
last modified: 4-17-06
-->
<head>
<title> .php responding to an HTML form, take 2 </title>
</head>
<body>
<h2> .php responding to an HTML form, take 2 </h2>
<?php
// because why would you type $_POST[] more than you
// have to?!
$form_name = $_POST["lastname"];
$form_age = $_POST["age"];
?>
Welcome <?php echo $form_name; ?>!
You are <?php echo $form_age; ?> years old.
<?php
if ($form_age < 21)
{
print "<br>...and, $form_name, you are having NO beer tonight!";
}
?>
</body>
</head>