Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment: Create an .html and .php file according to the following specifications. This project uses a form in an html document to submit the parameters

Assignment: Create an .html and .php file according to the following specifications. This project

uses a form in an html document to submit the parameters for an online order. Your PHP page will process the form data and summarize your order.

Create an appropriate (reasonably formatted with an external CSS) html webpage with the

following items

a) Title of page and subtitle explaining that this is a School Project.

b) Text describing the products and your webpage.

c) You must display two or more images on this website.

d) Form to allow order for one or more products.

e) You must use a checkbox to list three or more items to purchase.

f) All checkbox items should have the same name that is processed as an array by the

parameters .php page listed below. [https://www.designedbyaturtle.co.uk/2014/submitan-array-with-a-html-form]

g) Each item must have a different price.

h) First Name and Last Name of Customer.

i) Customer Address including individual inputs for street, city, state, and zip code.

j) Radio buttons to prompt for Mastercard, Visa, or American Express.

k) Use a css in an external style sheet to style (format) the page. You will lose points for

formatting in the xhtml. [Section 6.2.9]

l) Debug your form (make sure all parameters are transmitted to the server properly) by

setting the action for the form tag below to view all parameters passed by the form.

2) Create a PHP file in the same directory as the form. The form should now action this page.

3) Validate the data in the PHP code.

a) Confirm that at least one item is ordered as a checkbox.

b) Confirm that first name, last name, street, city, state, and zip code have data.

c) If any of these things fail, put in a link back to the html form to complete the form

properly.

4) With valid data, the page should complete the following things.

a) Thank user for the order with their name and shipping address

b) A table listing each ordered item with its price.

c) You will need to use PHP code to extract the price and item name from the form data

submitted. You will need to add the costs together and determine the cost of shipping.

Finally, calculate the total costs plus shipping

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions