currency format in POST or Session variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
podarum
Forum Commoner
Posts: 51
Joined: Mon Jun 15, 2009 1:36 pm

currency format in POST or Session variables

Post by podarum »

I have a form that the user inputs variables, including some currency ones.. Even though in Dreamweaver I am able to chose currency format, it doesn't show up as such. In my process page the numbers still show up as eg. 12000 instead of $12,000.00 or $12,000 .. How can I convert them to currency format?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: currency format in POST or Session variables

Post by Christopher »

See the manual for number_format() and money_format().
(#10850)
Post Reply