Forum Moderators: coopster
echo ("<p>Total : $ $cost</p>");
where the value for $cost is 5.00. When the varible is shown in a browser, the "." and the "0"'s are not there. What am I doing wrong?
money_format [ca.php.net] or printf [ca.php.net] do exactly what you want.