why are we using get method if we have passed the method as post in the … form section…?
Is it mandatory to use get method with post…?
To-Do-List Express js-1
@Alok-Gahlot-1359718094162972 it is not mandatory to use get with post, but to serve the HTML page, you have your form on, you need GET method. Then form send the POST request and hence you need POST method.
so basically our get method is fetching the request from the page and post method is rendering the appropriate response.
Isn’t it…?
@Alok-Gahlot-1359718094162972 get method is fetching the page for you, and post method allows you to post the data from the frontend to backend
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.