Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Gizmo Orders Place an order for Gizmos Your order receipt Your items Your sales

ID: 641422 • Letter: G

Question


Gizmo Orders

Place an order for Gizmos

Your order receipt

Your items

Your sales tax is 6%

Your order summary

Total quantity: 0

Subtotal: $0

Tax: $0

TOTAL: $0

end result i am trying to get
















012 Gizmos@ $123 each012 Gizmos@ $123 each012 Gizmos@ $123 each


Sales tax rate: %


I need to make a php file that adds the selections and makes a reciept showing the user what they input for example if the user says they are buying 2 gizmos @ 2 dollars a piece how would i make the php give that back to the html

2) The name value from the input tag is the index you use for the $_POST array to get the value for that form data.

3) You need to get each individual piece of form data and then use it. For instance, for the total quantity, get the three individual quantities and then add them together.

4) You can make whatever variables you want to hold intermediate calculations you need and then use them later.

Relevant calculations:

Total quantity is the sum of all three quantities.

Subtotal is first quantity times first price plus second quantity times second price plus third quantity times third price.

Tax charged is subtotal times tax rate divided by 100.

Order total is subtotal plus tax charged.

0 Gizmos @ $2 each 0 Gizmos @ $1 each 0 Gizmos @ $1 each

Explanation / Answer

you can do this...hope it helps

<html>
<body>

<form action="welcome.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>

</body>
</html>

<html>
<body>

Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>

</body>
</html>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote