Validating numeric input
For example, Zend_Validate_Float returns false for the input string '4'. I tried configuring Zend_Validate_Callback with PHP function is_numeric().Zend_Validate_Callback passes two arguments to is_numeric while the PHP function is_numeric() requires exactly one argument.All the tests were similar to this: Private Sub btn Validate String_Click( By Val sender As System.
The Java Script Source: Forms : Validate Numeric Only Simply click inside the window below, use your cursor to highlight the script, and copy [Control] C the script into a new file in your text editor (such as Note Pad) and save [Control S]. The value can be an integer or float, but it has to be numeric. Alternatively you can use Zend_Validate_Callback (2) with is_numeric (3) function, so it will be something like this: $validator = new Zend_Validate_Callback('is_numeric');  Sudheer Satyanarayana Sorry, but Zend_Validate_Int will return false on any float values.I tried using Zend_Validate_Float and Zend_Validate_Digits, but they don't seem to suit my needs. Greetings Thomas Weidner, I18N Team Leader, Zend Framework Original Message ----- From: "Aleksey Zapparov" Thanks for the quick response, Aleksey.Place four controls from the Web forms section of the Toolbox onto the form. If Is Valid returns a value of true then all of the validation checks were successful.Drag one Text Box control and give it an ID of First Name Text Box, two Button controls (Submit Button and Cancel Button), and one Required Field Validator (First Name Required Field Validator). The following screen shows the form in action, and the user has pressed the Submit button without entering any text into the textbox. The Required Field Validator fails when the value in the associated control matches the value of the Initial Value property of the Required Field Validator.