Hi all, 
       A PHP question to ask: I am using PHP to do a calculation of the total of
fields where user actually input the amount into the text field and I will
calculate the TOTAL from the fields as well as the GST.
Wonder how should I go about doing that?

I did something like :
           $total = $_POST["field 1"] + $_POST["field 2"] + $_POST["field 3"];
           $total = number_format($total, 2, ".", " ");
           echo "$$total<br>";
           echo "$".$total."<br>";

but it wasn't successful.
Hope to get some help here.
All comments/advice/solutions are welcomed=)

Regards, 
Irin.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to