Hi all,
I have a varibale $coursetotal
I have 2 other variables $course_cost and $no_places. Both of these variables contain data which is passed via a Form.
what I am trying to do is multiply $course_cost by $no_places and format the result as currency.
EXAMPLE.
If $course_cost contained £100.00 and $no_places contained 2 then $coursetotal shold output £200.00.
This is the code I am playing with.
<? echo money_format($fmt, $coursetotal) , = $_POST["course_cost"] * $_POST["no_places"];?>
The proble I am having is the code does not work. The error is:
Parse error: parse error, unexpected '='
Can anyone see where I have gone wrong.
Many thanks