Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Order Form by table thead, tfoot{ font-weight: bold; background-color: #eee; } table { border-collapse: collapse; } table td, th { text-align: left; border: 1px solid

image text in transcribedimage text in transcribedimage text in transcribed

Order Form by

Order Form - by

?>

1
Book Quantity
Head First PHP & MySQL
A Practical Guide to Fedora and Red Hat Enterprise Linux
Intro to Java Programming, Comprehensive Version

} else { ///////////////////////////////////////////////////////////////////////// // 4. Retrieve and store data from FORM submission /////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////// // 5. Define Constants (Tax, price for each book) /////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////// // 6. Calculate and store quantity multiplied by price for each book /////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////// // 7. Calculate and store both the Subtotal as well as Tax /////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////// // 8. Calculate and store Grand Total ///////////////////////////////////////////////////////////////////////// ?>

Invoice


Book Quantity Total
Head First PHP & MySQL
A Practical Guide to Fedora and Red Hat Enterprise Linux
Intro to Java Programming, Comprehensive Version
Subtotal:
Tax:
Grand Total:

Today is . Your expected delivery date is:

1. You are required to add your name to two (2) locations in the document. (2 marks) In the tag Display in the header (h1) at the top of the page 2. Create a conditional statement which tests to see if the user has pressed the submitbutton. (HINT: You have used this in many of the assignments when self-referencing the php file) (4 marks) 3. Complete the FORM tag by including a method and an action. Choose either of the two methods you've used in your assignments. The form should be self-referencing (meaning the form should be sent back to bookorderform.php). Use the special PHP super global to refer to itself after the submit button is pressed. ( 4 marks) 4. Retrieve the form data using the PHP super global and store them in variables. (4 marks) 5. Define the following three constants (Tax and Price for each book): (4 marks) TAX - set to a value of 0.13 phpPrice - set to a value of 30.99 linuxPrice - set to a value of 50.99 javaPrice - set to a value of 109.99 6. For each of the three books: Calculate and store the quantity multiplied by the price. ( 3 marks) 7. Calculate and store both the Subtotal and Tax separately. (2 marks) Subtotal is calculated by the addition of all the individual book totals from Step 6 Tax is calculated by multiplying the Subtotal by the Tax rate 8. Calculate and store the Grand Total. (1 mark) 9. For 9a thru 9c: (3 marks) Display the Quantity followed by the calculated price for each book from Step 6 (see screen capture) For 9d,9e and 9f: (3 marks) n... 1 MIIT439- PHP MIDTERM Samble Outbut (Invoice Screen)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

List the barriers in data collection for HR analytics.

Answered: 1 week ago