validation - HTML Tag not allow in textbox -


in website contact form. have received email. there html tags included in email.

can please provide solution validation (special symbol not allowed) etc....

check if suits needs.

you need add

required pattern = "[a-za-z0-9 ]+"  

attribute input-textbox. allow upper-case/lower-case text, numbers , spaces only.

<!doctype html>   <html>     <form>       <label>name*</label>       <input type="text" name="name" class="field" required pattern="[a-za-z0-9 ]+" />       <input type="submit"/>     </form>   </html>


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -