Question: Hi there, I currently have a simple HTML form, a menu, that would calculate the total cost of the purchase. Such as 3x Single shot

Hi there,

I currently have a simple HTML form, a menu, that would calculate the total cost of the purchase. Such as 3x Single shot of black coffee with 2x double shot esspresso. Total cost of this would be that. Using , thats where I display my total cost. However, with the integration of PHP for data collection purposes, I can only seem to POST values, not values.

Following is my code

Hi there, I currently have a simple HTML form, a menu, that

would calculate the total cost of the purchase. Such as 3x Single

shot of black coffee with 2x double shot esspresso. Total cost of

What I see

this would be that. Using , thats where I display my total

cost. However, with the integration of PHP for data collection purposes, I

I really appreciate if someoene could help me out

function totalPrice() var totalprice = 0: var price-of-java 0; var price_of_cafe 0; var price-of-cappu = 0; price-of-java-justJavaCost(); price_of_cafe cafeCost(); price-of-cappu = cappucost(); - total_Price -price_of_cafe + price_of_java + price_of_cappu; if (total_Price> 0) total_Price-"$"+total_Price; document.getElementById ("totalltemPrice").innerHTML = total-Price; else total_Price 0; document.getElementById("totalItemPrice").innerHTML"$0" function totalPrice() var totalprice = 0: var price-of-java 0; var price_of_cafe 0; var price-of-cappu = 0; price-of-java-justJavaCost(); price_of_cafe cafeCost(); price-of-cappu = cappucost(); - total_Price -price_of_cafe + price_of_java + price_of_cappu; if (total_Price> 0) total_Price-"$"+total_Price; document.getElementById ("totalltemPrice").innerHTML = total-Price; else total_Price 0; document.getElementById("totalItemPrice").innerHTML"$0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!