Removing Decimal Point
Posted: Thu Oct 23, 2008 5:42 am
Hi
I am new to PHP and I have a form where the person has to manually enter the price for a item. For some reason my payment processor wont accept decimal points!! Example if a item is 1200 or 1200.00 and that is submitted then it appears as 12.00 at the processors end. To have the value 1200.00 appear on my payment processor someone would have to type 120000!
Also if someone types in 1200 is there a way I can have two extra 0's added?
I am new to PHP and I have a form where the person has to manually enter the price for a item. For some reason my payment processor wont accept decimal points!! Example if a item is 1200 or 1200.00 and that is submitted then it appears as 12.00 at the processors end. To have the value 1200.00 appear on my payment processor someone would have to type 120000!
Also if someone types in 1200 is there a way I can have two extra 0's added?