I'm trying to add two variable totals, then multiply them by another number to return a total.
Here's the snippet of code that I want to configure to return the calculation:
$fee = ('AdultShirtQnty'+'YouthShirtQnty')*7;
I have a form that allows a number to be selected from a drop down menu for AdultShirtQnty and YouthShirtQnty. I want these two numbers to be multiplied by "7" as the total "fee".
Hope my interpretation is not too confusing.
Thanks in advance!
Assistance needed with code
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: Assistance needed with code
Code: Select all
$fee = ($_POST['AdultShirtQnty']+$_POST['YouthShirtQnty'])*7;Re: Assistance needed with code
Awesome! Thanks for the speedy reply.