> Thanks, that was nice and direct. I actually tracked down the problem; > it lies in the fact that the cfform.js *changes* the value before > validating. I can't guess why they did this, but they strip spaces, > dollar, pound, yen, euro, commas, tildas and plus signs before deciding > that it's good. I'm not sure how you can call that "validation".
If you type 1+ into the field, and submit to a database, does the 1+ get inserted into your database, or does 1 get inserted into the database? If it's 1, then I can see the logic behind what CF is doing there. It's helping you by stripping any extra garbage that might be associated with an integer (currency symbols etc.). As long as what's left after the garbage is stripped off validates ok, it will pass through. This relieves you of the need to do that stripping yourself. But this seems somewhat arbitrary, and could lead to unexpected results, so it's probably best not to rely on it. -- Josh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272057 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

