Greetings. I have been trying to learn the proper way to validate a webform using best practices and methods. I've learned that to do this properly, both server-side and client side must be used to ensure proper data submission and for security issues.
The benefits the user gains by a designer using client-side validation seem to fly right out the window if server-side validation is used also. It seems to defeat the whole purpose of client-side validation? :mad:
In case some of you are confused as to my problem, here is an example.
- User inputs data, and submits.
- If errors are found, an error div or multiple prompts direct the user to correct the errors on the same page near the form, otherwise the data is submitted, and success div is displayed.
- Correct data is submitted to php file (if validation exists, how do I handle the errors, and in a manner that doesn't make the client-side error correction pointless) and sent to the website owner's email.
I seriously need help, and any suggestions or tutorials or other information would be greatly appreciated. Please remember though I'm a programming noob, and very right-brained.