hi ppl, have got a php question. i am looking to do some simple form validation using php to display error msgs n the page if a field is invalid. I have done extensive searches on google but can only seem to find 'clunky' javascript pop up validation. can any 1 help or give me a decent link where i can find out more. thanks in advance. clouting
This: http://www.php-mysql-tutorial.com/form-validation-with-php.php has a mix of both, you might want to also try something like http://www.onlamp.com/pub/a/php/2004/04/22/php_css_forms.html Jay
You're joking, right? Turn JS off, and what happens? The validation doesn't work! JS is too easily breakable.
No, hundreds of thousands of people have it turned off. The server validation would consume negligible resources anyway. Normally I have a basic JS validation, with PHP validation for fallback.
However you can do it using javascript as well. if you are using asp.net you can do it using ajax toolkit control