PHP is safe. I 'd like to ask, how do I handle user data? PHP is safe. I 'd like to ask, how do I handle user data? Is there a standard common receiving function? At present, it is basically: $ a $ _ POST [& quot; a & quot;]; or $ a $ _ GET [& quot; a & quot;]; how to receive it? Or how can I filter the data to make it safer? Because the SQL statement is executed. How to ensure security? It is better to have a comprehensive function to deal with these issues. please refer to PHP Security. I would like to ask how to handle the data of the recipient?
PHP is safe. I 'd like to ask, how do I handle user data? Is there a standard common receiving function?
Now it's basically all:
$ A = $ _ POST ["a"];
Or
$ A = $ _ GET ["a"];
How do I receive it? Or how can I filter the data to make it safer? Because the SQL statement is executed. How to ensure security?
It is better to have a comprehensive function to process these requests.
1. special characters can be filtered to prevent SQL injection.
2. data such as POST, GET, COOKIE, and REQUEST can be received.
Do you have any questions to share?
------ Solution --------------------
Use the extract () function?
------ Solution --------------------
Discussion
Use the extract () function?