Can I use "Put" method in html form to send data from HTML Form to server? Yes you can, but keep in mind that it will not result in a PUT but a GET request. If you use an invalid value for the method attribute of the <form> tag, the browser will use the default value get.

Understanding the Context

HTML forms (up to HTML version 4 (, 5 Draft) and XHTML 1) only support GET and POST as HTTP request methods. A workaround ... Better is to choose between PUT and POST based on idempotence of the action. PUT implies putting a resource - completely replacing whatever is available at the given URL with a different thing.

Key Insights

By definition, a PUT is idempotent. Do it as many times as you like, and the result is the same. x=5 is idempotent. You can PUT a resource whether it previously exists, or not (eg, to Create, or to ... What are these methods (PUT) and (DELETE) for...

Final Thoughts

There are a lot of words to spend to explain this, and I'm not skilled enough to do it, but as already posted, a quick recap of what the HTTP specification describes. The protocol basically says this: use GET when you need to access a resource and retrieve data, and you don't have to modify or alter the state of this data. use POST when you need ... I'm new to PHP and don't understand what the point of <<<_END is. Could someone please explain when this should be used? I've looked at various examples and they all seem to have HTML embedded within them.

But I can use HTML without the <<<_END tags, so why should I use them? I tried searching the manual, but I keep finding the end() method for ...