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(). Use the following HTML tag element classes in your HTMLForms:

Of course, you can add other tag elements to a form, including the following:

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