These are my variables.
$Q01 - $Q29 (for quantity)
$P01 - $P29 (for price)
$D01 - $D29 (for description)
These variables are not in an array, they are all listed seperately, unfortunately they are sent from a form and cannot be sent as an array.
This is what I have so far:
Code: Select all
<?php
if ($HTTP_POST_VARS['Q01'] > 0) {
$Quantity1 = $HTTP_POST_VARS['Q01'];
$Description1 = $HTTP_POST_VARS['D01'];
$Price1 = $HTTP_POST_VARS['P01'];
$Amount1 = $Quantity1 * $Price1;
$Item1 = $Description1 . ", Quantity = " . $Quantity1 . ", Amount = " . $Amount1;
}
$Total = $Amount1 + $Amount2 + etc....;
?>
Is this possible?
Thanks for your help.