If the security of form submission is not done well, it is easy for the website to be attacked due to this form submission. Let me share two commonly used PHP methods. For examples of filtering dangerous codes submitted through forms, friends in need can refer to them.
Example 1
The code is as follows
|