Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this php code is not working i need help please Order Form by Layaly Abu Saadah table thead, tfoot{ font-weight: bold; background-color: #eee; } table

this php code is not working i need help please

Order Form by Layaly Abu Saadah

Order Form - by Layaly Abu Saadah

?>

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:

Applying What You Have Learned (Hands-on) Part A: Online Bookstore OrderForm Coding Instructions: After you have downloaded the appropriate files for this portion of the test Midterm_PartA_studentFiles_php.zip, you are ready to start. Rename bookorderform_before.php to bookorderform.php Study the code for this page. Save the files. Remember to upload your final solution to blackboard!!! POST in Test1 folder on SCWEB. Sample output has been provided on the last page. Detailed coding instructions: The ORDER FORM Review the source code for this page, and then complete the following tasks. 1. You are required to add your name to two (2) locations in the document. (2 marks) In thetag 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 youve 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) 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.

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

3. Discuss the process of behavior modeling training.

Answered: 1 week ago