Maybe this is already passed on the list, but if so I mess it. I use
this regular expression to validate amounts in my application.

   define("VALID_AMOUNT","/^(-?[0-9]+)(\.[0-9]{2})?$/");

Allows numbers, with optional 2 decimal digits and may be also a
negative number.

If someone would like it, he can take it and if someone want to include
it in the cake framework (maybe an improved form), can do it.

HTH
Bye
Davide

-- 
By the power of Greyskull...

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to