So, to keep it short: HTML forms consist of the

tag, which specifies where and how the data is sent, and of one or more tags, which define what data is sent.

In the form tag, the "action" attribute tells the address/URL, where the data is sent to and the "method" attribute tells where in the HTTP request the data is added.

If method is "get", then the data is added to the so-called "query" of the URL.

For example: If you have an input item with name "foo" and value "bar", then the URL will be something like https://your.domain.com/the.action.address?foo=bar

If the action is "post", then the data is added to the so-called "body" of the HTTP request. Essentially, the request body can take much more data than the query, so most forms work with a "post" method.

Reply to this note

Please Login to reply.

Discussion

Thanks , that's a good description. I think I need to understand http a bit more.