Welcome to WebmasterWorld Guest from 54.167.157.247

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Need help on a reg exp. for money

   
10:15 pm on Feb 19, 2008 (gmt 0)

10+ Year Member



Iím trying to ensure a user doesnít accidently add two (or more) decimal points to a price field. For instance 12,000.00 OR 12000.00 is correct. Once in a while however I find 12.000.00 (price contains two decimal points).

Any functions exist for double checking money formats before inserting into a Table:Money:Column?

11:33 pm on Feb 19, 2008 (gmt 0)

5+ Year Member



[google.com...]

google is your friend!

specifically:

[uk.php.net...]

Hope that helps