Top "Validation" questions

Validation is used to check data to make sure it fits whatever required specifications are set for it.

Reactjs - Form input validation

My Contact page form is as follows, <form name="contactform" onSubmit={this.contactSubmit.bind(this)}> <div className="…

javascript node.js reactjs forms validation
Do I really need to encode '&' as '&amp;'?

I'm using an '&' symbol with HTML5 and UTF-8 in my site's <title>. Google shows the …

validation html utf-8 character-encoding
Regular expression for first and last name

For website validation purposes, I need first name and last name validation. For the first name, it should only contain …

regex validation
How to Validate a DateTime in C#?

I doubt I am the only one who has come up with this solution, but if you have a better …

c# datetime validation
Use CSS to automatically add 'required field' asterisk to form inputs

What is a good way to overcome the unfortunate fact that this code will not work as desired: <div …

css forms validation standards
Validating input using java.util.Scanner

I'm taking user input from System.in using a java.util.Scanner. I need to validate the input for things …

java validation java.util.scanner
Disable validation of HTML5 form elements

In my forms, I'd like to use the new HTML5 form types, for example <input type="url" /> (more …

validation forms html input
Regex match one of two words

I have an input that can have only 2 values apple or banana. What regular expression can I use to ensure …

regex forms validation
Checking if form has been submitted - PHP

What is the best way of checking whether or not a form has been submitted to determine whether I should …

php forms validation
What's the best way to validate an XML file against an XSD file?

I'm generating some xml files that needs to conform to an xsd file that was given to me. What's the …

java xml validation xsd