Forms are typically used with CGI (Common Gate Interface) scripts that are located on a server. Common languages to write CGIs are Perl
and C. The <FORM> tag has attributes that give specific information to the server that helps it process the information it is sending.
Ex: <FORM action="/scripts/mycgi.pl" enctype="multipart/form-data" method="post">
This attribute tells the browser where the CGI is located that will process this form.
This can be equal to either GET or POST. This is the method that the browser will use to communicate to the Web server and send the form information.
GET - the default, this method puts the form information in the URL after a question mark.
POST - this method sends the form information as a data block to the server through HTTP protocols
This indicates the format of the data submitted to the server. This is most often used with forms where there is a file-upload option.
This is a list of the MIME types that the server will accept.
This is a list of the character sets that the server will accept.