Chapter 6: Specifying the Form Destination
As I mentioned earlier, forms provide a lot of flexibility in terms of what
happens to the data. Basically, in the action attribute of the
<form> tag,
you will specify the
URL of where the data will be sent. In almost all
cases this will be a server side script--a program on the Web server that is
designed specifically to accept form submissions and process the data in
some way.
Emailing Form Data
Some Web designers create forms that email data using the
action="mailto:address" attribute in the <form> tag. This works--but
only sometimes. Depending on a user's software configuration it mail fail
altogether. For reliable emailing of form data you must direct the form to
a script on the server that is written specifically for emailing data.
As you may have guessed, there's no point in having a form on your
Website unless you also have the script to process it as you need. I am not
going to teach you how to write scripts--that would take an entire book in
itself--but I can provide some background information on scripts, where to
find them, and where to install them.