tags:

views:

38

answers:

4

Is something like this:

<form action="/" method="put">

</form>

or

<form action="/" method="delete">

</form>

possible? Thanks.

+2  A: 

According to the specification, only Get or Post are allowed:

From W3C: The FORM element

method = get|post [CI] This attribute specifies which HTTP method will be used to submit the form data set. Possible (case-insensitive) values are "get" (the default) and "post". See the section on form submission for usage information.

...

For any other value of action or method, behavior is unspecified.

User agents should render the response from the HTTP "get" and "post" transactions.

Developer Art
A: 

No.

Trick
+1  A: 

Based on w3c recommendations you should only use post and/or put methods for form submission. Unless you are performing some kind of client side validation/submission.

Pat
A: 

In HTML4 - no. GET and POST are the only HTTP methods allowed.

In HTML5, PUT and DELETE will be supported (probably).

ctford