PHP Classes

Validate

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  >  Locating addresses on...  >  All threads  >  Validate  >  (Un) Subscribe thread alerts  
Subject:Validate
Summary:Validate forms generation
Messages:3
Author:flavio r
Date:2013-08-27 19:46:01
Update:2013-08-28 15:05:48
 

  1. Validate   Reply   Report abuse  
Picture of flavio r flavio r - 2013-08-27 19:46:01
How to validate a field with 'ValidateAsInteger' and also allow empty?

  2. Re: Validate   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-08-28 12:18:29 - In reply to message 1 from flavio r
You can set the ValidateOptionalValue parameter to an empty string, so it accepts it as valid without further checks.

  3. Re: Validate   Reply   Report abuse  
Picture of flavio r flavio r - 2013-08-28 15:05:48 - In reply to message 2 from Manuel Lemos
Thanks, I had tried this, and now I see I was wrong typing.
Now it worked.