I don't know in my site someone register without filling whole required detail.Though I have javascript validation on my registration page also have captcha.what should I do to prevent this type of illegal registration?
views:
101answers:
2Validate your data server-side. Client-side validation is great to help novice users, but you shouldn't trust it since it can be bypassed - server-side validation is a must to actually enforce proper values. A quick googling for "php form validation" turned up this example of the differences between client-side and server-side validation:
http://www.php-mysql-tutorial.com/wikis/php-tutorial/form-validation-using-php.aspx
you can put javascript valuidation for each field, e.g. if all required, email valid etc. You can also use server side validation. A good approach would be using both of them for added security.
http://www.w3schools.com/jS/js_form_validation.asp
http://www.html-form-guide.com/php-form/php-form-validation.html
http://www.php-mysql-tutorial.com/wikis/php-tutorial/form-validation-using-php.aspx