Validating date server side in php Hot porn chat no logins
Furthemore, Chrome display simple additional interface. If you don't write anything in input or write it in bad format (correctly is following: '1919-12-23'), you will get the first statement.If you write everything in good format, but you type wrong date (I assumed that nobody could born before XX century), your controller will send the second statement. /^(19[0-9]|2[0-9])\-(0[1-9]|1[0-2])\-(0[1-9]|1[0-9]|2[0-9]|3[0-1])((T|\s)(0[0-9]|1[0-9]|2[0-3])\:(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])\:(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])((\ |\.)[\d ])? Further reading: gross, systematic, random errors: https://answers.yahoo.com/question/index?qid=20080918203131AAEt6GO If you are doing light validation, it is best to do it on the client.
You need to do both, client side to provide a better user experience, and server side to be sure that the input you get is actually validated and not just supposedly validated by the client.