i have a form in which someone fills in their expense information,
and when they submit the information, it gets e-mailed.
i would like to use the $addition feature in order to total out the information so that I don't have to manually calculate them every time.
I would also like to subtract the difference between Income information VS Expense information.
This is what I have (everything works except for the math part, so i will leave out the unnecessary code):
Code: Select all
$total_contents .= "Groceries/Supplies : " . $_POST['GroceriesSupplies'] . "\n\n";
$total_contents .= "Day Care : " . $_POST['DayCare'] . "\n\n";
$total_contents .= "Medical : " . $_POST['Medical'] . "\n\n";
$total_contents .= "TOTAL EXPENSES: " . $_POST [$addition = 'GroceriesSupplies + DayCare + Medical'] . "\n\n";
if you would like i can also e-mail you the php file. Thanks in advance.