Creating a template with a simple form
Let's start with a web page to create a note. A simple design is as follows:
In HTML, there are two ways to submit a form: POST
and GET
. The difference is the way how the parameters are transferred to the server. In both cases, the browser issues an HTTP request. If you use the POST
method, then the browser sends an HTTP request with the POST
request method token to the server. The values of the form fields are transmitted in the request body. With the GET
method, the browser sends a HTTP request with the GET
request method token to the server. The values of the form fields are appended to the URL after a question mark (?
) character.
Note
A Uniform Resource Locator (URL) describes the location of a resource that is available over the Internet. A typical URL looks similar to http://www.example.com/path/to/file?user=yourid&action=create
. The parts of a URL are as follows:
http://
: This denotes the protocolwww.example.com
: This is the host name/path...