I just want to ask for some tips if thats okay
For handling html/javascript form submissions
What is the best way of submitting forms to a given url and making the url, in this case action="website.com/formsubmit.php"
non-changable or hard to change?
Say if I have some data submitted in a form, I only want that data to go to one page, not any other page else it may cause errors for other pages reading for $_POST
requests?
For example:
Form goes to/page1.php
on submit.
I have another page called /page2.php
which also handles form submission for another form, how do I make it so the user can't change the action of the form to go to page 2 or another page, if that makes sense?
If it isnt possible client-side how would I check for a form via POST request via server-side in php where the form is the one from page one and not from another page falsely sent by the user, like when a form is submitted to a php page, how would I know it is that form from page one sent, is there an identifier you can check for in php that cant be changed client-side on the form or anything? I may not be making sense here but I hope some answers you provide, if any will help me understand a bit better about form submissions.