Handling Forms



<form action="form_action.php" method="POST">
name: <input type="text" name="username" />
password: <input type="password" name="passwd" />
 <input type="submit">
</form>
name:
password:

In form_action.php:

Values are automatically set for you by PHP.

We can retrieve the submitted values using $username and $passwd