Assistance needed with code
Posted: Sat Jun 21, 2008 4:05 am
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!
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!