Hello all,
I am wondering how can I do some math using PHP, I want to be able to take the following and do it with php
person comes along and enters 10.00 now I want to come up with the answer of:
var are being passed to a func called donation_cal()
10.00 * 2.9% + 0.30 =
the func passes either the donation plus the fee or it give just the donation amount then once the person clicks next this is passed to paypal, I just not sure how to handle math
I think its like
$total_donation = math($donation * $fee)+ $flat_fee
please help thanks
Christopher