In my registration form of my website, I have a field for email. It is like
<input type="email" name="email" size="25" maxlength="200" required pattern="^[A-Za-z0-9@.]+" required />
So, in this field, a person can only write the few characters which are not restricted.
But today someone tried to access my website and fulfilled his registration using some code like
((selectsleep(25)))a--1
My question is, how can someone fill and submit these type of characters in that input field? Is there any lacking in my code? And second question is, how can I stop this type of characters to be submitted?