DSGN53871
WEB DESIGN 1
Simple Form
Passing variables from a form to a page.
<form action="action.php" method="post">
Your Name: <input type="text" name="name" />
Your Age: <input type="text" name="age" />
Secret Pledge Nickname: <input type="text" name="secret" />
Status: <input type="text" name="status" />
<input type="submit">
</form>
Hi <?php echo $_POST["name"]; ?>
You are <?php echo $_POST["age"]; ?> years old.
Your Secret Delta Tau Chi Nickname is
your status is <?php echo $_POST["status"]; ?>
<< Back
Interactive Multimedia ~ School of Applied Engineering
and Computing Sciences ~ Sheridan
|