When a user connects to my server, I would like to display 2 forms: "Accept" and "Reject" with the mail sending method sent to my server if the user clicks. How do I know which button was pressed when I process a request on my server?
To send two parameters, the REST URL must be
app.post('buttonclicked/:id/:submit',function(req,res){...}
and at the end of the client the URL will look like
http://<server domain>/buttonclicked/<id>/<accept/decline>
Source: https://habr.com/ru/post/1235934/More articles:Problem with displaying Entity Framework structure - entity-framework-6Why does PHP Symfony sfSessionStorage :: initialize sometimes take a really (really) long time? - performanceSwift: How does zip () handle two collections of different sizes? - swiftHow do you protect SpringBoot / Spring-Data Rest, so the user can only access their own objects - spring-dataHow to find out which button is pressed? - javascriptCheck if iPad supports multitasking in iOS 9 - software - ios9How to use additional Babel 6 helpers in a browser? - javascriptList of trees for inverse triangular matrix in R - listrails - How to use onsubmit with form_tag - javascriptRespond not to router rendering component - javascriptAll Articles