HTML form classes

The HTMLForm class represents an HTML form. This class allows you to:

The constructor for the HTMLForm object takes a URL address. This address is referred to as an action URL. It is the location of the application on the server that will process the form input. The action URL can be specified on the constructor or by setting the address using the setURL() method. Form attributes are set using various set methods and retrieved using various get methods.

Any HTML tag element may be added to an HTMLForm object using addElement() and removed using removeElement(). The HTML tag element classes that you can add to an HTML form follow:

For more information on creating a form using the HTMLForm class, see this example and the resulting output.