Welcome to WebmasterWorld Guest from 54.227.68.206

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)

Full Member

10+ Year Member

joined:June 24, 2004
posts: 202
votes: 0


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)

Junior Member

5+ Year Member

joined:Dec 19, 2006
posts:92
votes: 0


[google.com...]

google is your friend!

specifically:

[uk.php.net...]

Hope that helps