How can I deal with code element?

Hello, users. I have been thinking about the same thing. Let's imagine that the page has a form which has a select option. By clicking on submit form data is passed to the handler. For example, control.php.
So what's the question. What if the person with the code element change option, which by their nature should not change? In this case, the handler will come the changed data? And how to deal with it?
March 23rd 20 at 19:05
2 answers
March 23rd 20 at 19:07
Solution
I might surprise you, but we can all see the url for which you form submited and if you have no CSRF protection, to seismicity any REST client you anything. The moral: always check what you comes to the server.
March 23rd 20 at 19:09
Check user input on the server side.
What else... It's a classic.

Find more questions by tags PHP