HTML Forms


Defining a FORM

  1. NAME - form name (can use to access in JavaScript)
  2. METHOD is GET or POST - two ways in which data can be sent to the server
  3. ACTION - a CGI (Common Gateway Interface) to which a forms data will be sent when submitted to the server
<FORM NAME = "orderForm" METHOD = "GET" ACTION = "order.cgi">

In the above example a form called orderForm has its data sent to a script called order.cgi on the server using the GET method.

An Example HTML Form