PHP Classes


Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Validating PHP Form I...  >  All threads  >  Javascript  >  (Un) Subscribe thread alerts  
Summary:Validating forms without javascript
Author:Frank Cauley
Date:2011-03-17 19:20:59
Update:2011-03-17 20:22:53

  1. Javascript   Reply   Report abuse  
Frank Cauley - 2011-03-17 19:20:59
Many users of my forms either don't know how to enable javascript or are afraid to enable it. Some others are on sites that do not allow them to change the javascript status.

Are there any thoughts of validationg at the server?

  2. Re: Javascript   Reply   Report abuse  
Manuel Lemos - 2011-03-17 20:22:53 - In reply to message 1 from Frank Cauley
The class validates both on the server using the Validate() function and also generates JavaScript code to validate on the browser.

If your users do not have JavaScript enabled in their browsers, it will not affect server side validation.

You may even disable JavaScript generation if you are required but if you are not required you can leave it generating validation JavaScript and it will work better for the majority of users that have JavaScript enabled.