Login   Register  
PHP Classes
elePHPant
Icontem

Javascript

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Forms generation and validation  >  Forms generation and validation package blog  >  Validating PHP Form I...  >  All threads  >  Javascript  >  (Un) Subscribe thread alerts  
Subject:Javascript
Summary:Validating forms without javascript
Messages:2
Author:Frank Cauley
Date:2011-03-17 19:20:59
Update:2011-03-17 20:22:53
 

  1. Javascript   Reply  
Picture of Frank Cauley
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  
Picture of Manuel Lemos
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.