Hello,

I want to make sure the user has input numeric value in a text form field. The value can be an integer or float, but it has to be numeric.

I tried using Zend_Validate_Float and Zend_Validate_Digits, but they don't seem to suit my needs. For example, Zend_Validate_Float returns false for the input string '4'. Zend_Validate_Digits returns false for input 10.5.

Do we need Zend_Validate_Numeric? Or am I missing something here?

--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in


Reply via email to