PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

PHP Questions Forums : Questions on Javascript AJAX JQuery

Jump to Last Post

Validating a form with javascript

By: Timjohns [28-January-10 5:30AM]
25 posts
picture

If you are validating form data with javascript, then remember that this should be one of two checks that you do with the data.

You should also have some back-end processing to ensure that the data is in the right format that you want, so if people have javascript turned off or are able to bypass the checks then you are able to ensure that you get the data that is required in the right format from the user: particularly important when you need an address in a specific format, for instance.

Re : Validating a form with javascript


Jennaj [31-January-10 8:14AM]
4 posts
picture

Yes Javascript should be used as one of two systems to check input, it is very useful though as it ensures that you can give instant feedback on wrong data entered. I think many people who get as far as submitting a form and then realise the input is wrong don't bother resubmitting so potentially you lose their input!

Previous: Javascript Making A Comeback
Next: Good Uses Of AJAX



Custom Search