I have a regular here. If the submitted data matches this regular, it is inserted into the database with PDO
This is the regular $reg = '/^. {60,600}$/'; But for example, I insert a few random HTML tags
It's just like this. After submitting the insert successful database there is also a number of data, but the data is empty and nothing.
If I insert a few characters or something like this, it shows why it's not possible to insert HTML tags. I didn't filter the HTML tags. is the PDO automatically filtered?
/;'\,.":!@#$%^&*
Reply content:
I have a regular here. If the submitted data matches this regular, it is inserted into the database with PDO
This is the regular $reg = '/^. {60,600}$/'; But for example, I insert a few random HTML tags
It's just like this. After submitting the insert successful database there is also a number of data, but the data is empty and nothing.
If I insert a few characters or something like this, it shows why it's not possible to insert HTML tags. I didn't filter the HTML tags. is the PDO automatically filtered?
/;'\,.":!@#$%^&*
The first regular is any character 60 to 600, your HTML is 37 characters, can not match ah.