So Ive created a form on a website involving ticket sales, I want customers to be able to choose the quantity that they want to purchase, and then I want to be able to echo/display the total in the confirmation page.
Here is what I have down for the forum
<td><select name="Payment_Type" size="1" id="Payment_Type" tabindex="27">
<option value="None">-- Charge Amount --</option>
<option value="General Admission $25">General Admission $25</option>
<option value="VIP Seating $75">VIP Seating $75</option>
</select>
<label for="quantity">Qty:</label>
<input id="Quantity" name="Quantity" type="text" size="3" />
</td>
It consists of two ticket choices and a quantity field. When they choose one and then a quantity I want the next page aka the confirmation page to total it up.
<?php echo $_POST["Payment_Amount"];
#if ($_POST["Payment_Amount"].Value=="One") echo "$59.40 USD";
#else if ($_POST["Payment_Amount"].Value=="Two") echo "$98.00 USD"; ?>
This is an older form for a previous function that I am editing hence the weird prices of 98.00 and 59.40
Please reedit this for me so the user can choose the ticket type, either 25 dollars or 75 dollars, choose a quantity then submit to the confirmation page. And on the confirmation page it adds up the amount + quantity and echo's it back on the display.
How would I go about doing that?
Here is what I have down for the forum
<td><select name="Payment_Type" size="1" id="Payment_Type" tabindex="27">
<option value="None">-- Charge Amount --</option>
<option value="General Admission $25">General Admission $25</option>
<option value="VIP Seating $75">VIP Seating $75</option>
</select>
<label for="quantity">Qty:</label>
<input id="Quantity" name="Quantity" type="text" size="3" />
</td>
It consists of two ticket choices and a quantity field. When they choose one and then a quantity I want the next page aka the confirmation page to total it up.
<?php echo $_POST["Payment_Amount"];
#if ($_POST["Payment_Amount"].Value=="One") echo "$59.40 USD";
#else if ($_POST["Payment_Amount"].Value=="Two") echo "$98.00 USD"; ?>
This is an older form for a previous function that I am editing hence the weird prices of 98.00 and 59.40
Please reedit this for me so the user can choose the ticket type, either 25 dollars or 75 dollars, choose a quantity then submit to the confirmation page. And on the confirmation page it adds up the amount + quantity and echo's it back on the display.
How would I go about doing that?

















