The value of the attribute "METHOD" specifies the HTTP method to execute.
If this attribute is not specified, the GET method will be executed by default.
The value of the attribute "ACTION" specifies the path for a resource on the server.
The path works the same way as an hyperlink:
-
Absolute path:
If the path in the attribute "ACTION" starts by the "/" character, that's an absolute path for the resource requested.
Example:
Is equivalent to:
-
Relative path:
If the web page (which contains the form attribute) is located somewhere on the server, let say :
Then, the resource requested must have the following path on the server :
Example:
Is equivalent to:
There can be more than one form on the same web page.
But only one form can be submitted at once.