3 ms·
Scenario: You have a customer. You do a GET request to see if the custom exists, they don't. You whip open your HTML form to do a POST to input their details.
by Devasta 4y ago
Scenario:
You have a customer. You do a GET request to see if the custom exists, they don't. You whip open your HTML form to do a POST to input their details. So far so good. You realise you made a mistake, a simple typo, now you need to do a PUT request to update the details.
Oh wait, you can't. Doesn't make sense that you would want to do this, apparantly.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=10671#c16 https://www.w3.org/Bugs/Public/show_bug.cgi?id=10671#c16
Sure, you can add hidden _method inputs and so on on the form, but such hacks and workarounds shouldn't be necessary.
In modern webdev, HTML is just the payload carrier for the real website, which is the JS app. So long as HTML is intentionally crippled its folly to suggest otherwise.