Php validating text input
You can start doing this in PHP with validating and sanitizing data on your site, which is what we’ll be sharing in this article.
Since this is a beginner’s post on basic validation and sanitization, you’ll want to learn more about keeping your site secure.
After that, two different uses of the PEAR Auth package show an alternative way to implement authorization in your Web applications.
get Error Function and Variable Comparisons are for absolute comparison, where only two variables of the same type with the same value ever return TRUE ("true" is not true). Not only are they almost impossible to spot (I almost missed it) but they are impossible to document. Not only that, but you don't even use it as far as I can tell.
It should be written with an absolute comparison because what you are looking for is not the string "true" but the boolean TRUE.
Sure, you aren't going to reuse them, but at least it will be cleaner.
Also, if all of your cases return true if nothing is wrong, you can just end the Not to say this works 100%. I'm unclear about the JQuery because I haven't done much with it, but from what I remember it should still work.
One extra note: j Query is used throughout the Java Script files.