Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using php, and it works successfully Order Form by table thead, tfoot{ font-weight: bold; background-color: #eee; } table { border-collapse: collapse; } table td, th

using php, and it works successfullyimage 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) 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) Display the Subtotal, Tax and Grand Total from Step 7 and Step 8 (see screen capture) 10. Display the date that the order was processed. (4 marks) Retrieve the system date and format it as per the screen capture 11. Display an "Expected Delivery date" which will be calculated using the date function as being exactly 5 days after the order date. ( 6 marks) HINT: use php.net to research the date function. Format it as per the screen capture 12. Read over all the instructions to ensure that you have completed all the requirements. When done, POST your solution file in your public_html folder on the college web server and upload your solution to blackboard in a zip file. 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: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

=+1 Where are the best places in the world to live (and work)?

Answered: 1 week ago

Question

=+Are you interested in working on global teams?

Answered: 1 week ago

Question

=+Do you want to work from home?

Answered: 1 week ago