I'd really like to know how to deal with users input, forms and other stuff without JS. Every tutorial we see today is like "throw tons of JS to this problem and it shall work".
Vanilla forms just GET or POST to some server endpoint with all of the <input>s passed in as query parameters. Frameworks (e.g., Rails) put some syntactic sugar on it, but that's really all that's happening. If the form submission contains invalid input, it's customary to return to the form page (with all the values already filled out) and show a server-generated message about what went wrong.
I think it's a little bit awkward to not use put, patch, delete... I wonder however if my server must follow the same technique, if not how to wire a delete endpoint to handle a form post and so on. I'll try to handle a form using only get and post sometime just to see how it works. Thank you!
Well you just made me feel old. For put/patch/delete you can just as easily wire different options to different URL's. We had URL's like /Foo/Delete?43. It may be awkward in a particular framework but it's about as simple as things get.
I've always hated put/patch/delete because it tends to result in data centric UI's instead of workflow centric ones.
Hmm now that you mentioned I realized I've seen this pattern before but I've never given it a thought. I'll definitely try it sometime, it seems to work pretty well. BTW sorry for make you feel old, it was not my intention haha
Hmm I've been using w3schools for quite some time now but I ALWAYS double check it with a third source, often MDN. I really like their straight to the point approach and I think they've been fixing some of the odd stuff lately. I don't really think it's really that bad if you already have some previous experience, it can work OK as a quick reference.
all that link says is that w3c is "not reputable". no evidence. For learning the basics in webdev (coming from C/C++) I've never had a problem with w3c.
Even if they have fixed all these instances since then, that all those errors were ever produced is a bad sign, especially when there were better alternatives even then.
JS is absolutely not required for any of it.