POST with links without JavaScript

Say I have a calendar on my page, and clicking on a day will mark that day as completed. But I want to use POST, not GET, because GET is not suitable for this kind of thing (something changes). And I also do not want to use JavaScript.

I am going to create a page that will work without JavaScript (which I will use to "update" the user interface so that this update is done using XHR), but I would also like to observe how HTTP (this is what REST is, if I understand REST correctly).

So, is there a way to do this, or is using links to modify data with the wrong approach from the start? If so, the only viable solution (for my specific problem) I see is to use the submit buttons for every day (along with the form for every day). But I'm more interested in the general idea here, not only for my problem.

+3
source share
1 answer

So, is there a way to do this, or

No no.

uses links to modify data the wrong approach from the start?

Yes it is.

... although you can apply CSS to the buttons.

+5
source

Source: https://habr.com/ru/post/1727533/


All Articles