Just a stupid question: I know very well how to prevent MySQL Injection using PDO and MySQLi, but Can I prevent it if I just do not allow symbols in the forms?
I mean: If I use something like:
<input name="txt_user" id="txt_user" pattern="[a-zA-Z0-9-]+">
Can this prevent MySQL Injection?
Thanks in advance for your answers!!!