SQL-:
XSS:
Do not allow users to use HTML.
To prevent this, you can use both strip_tags()(without permitted tags) and htmlspecialchars().
If you want to allow some markup, consider using BB code.
CSRF:
Any significant form must contain a unique token, which should be compared with the one stored in the session.
source
share