HTML & CSS In Pictures
Make the form work
  1. In infoform.html, add a method to the <form> tag:

    <form method="post">

    TIP: There are two methods used in forms, post and get.

    post is used to send information to the server, get to get information from it.
  2. Add an action:

    <form method="post" action="http://www.yourdomain.com/cgi-bin/formmail.pl">
  3. Save infoform.html.

Making a form work

To make a form work, an action must be assigned to it.

Consult with your Web server administrator to specify what action you should assign.

The action above tells the form to post its data to a program called formmail.pl at yourdomain.com.

In this case, the formmail.pl program takes the form data visitors submit and emails it to you.