Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
I don't know where you read the articles you read, but that quite frankly is a pantload.
There's nothing wrong with using Javascript to validate a form if it's not your only method of validation. Like the Flash question you asked earlier, not everyone has Javascript enabled and in a browser such as Firefox, it's all too easy to disable.
You're better off to have a programming language, such as PHP, perform the validation with Javascript being used as a validator only for those who have it enabled (in other words, users with it enabled will have two levels of validation, Javascript and PHP...those that don't will still have PHP validation.)
Never leave the door open for anyone to do anything stupid like get past your form with no validation...not only will they do that, but they will see your entry point for stupidity and raise you ten idiotic things you and I would never have dreamed of. And that's a poker game that you don't want to play.
|