So, to keep it short: HTML forms consist of the
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.
Thanks , that's a good description. I think I need to understand http a bit more.
Please Login to reply.
No replies yet.