Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I am having trouble with my HTML/PHP assignment. The overall goal is to create an order page for a business that sells one product.

Hello,

I am having trouble with my HTML/PHP assignment. The overall goal is to create an order page for a business that sells one product.

For this first part, customers (users) need to enter their name, their shipping address, their phone number, select the quantity of the product, and select a delivery method. The form must be neat and styled functionally. I also need to include a picture and description of my "product." All data must be validated and sanitized. (Order data will be saved to a database in part B, so I need to prepare my data accordingly.) My order form must use at least four, different form input types, and I must use at least one text field, one drop-down, and one radio button or checkbox (I can add additional questions to meet these requirements).

The form must be sticky. That is, if a user fails to enter in valid data in one or more fields, the user will have their previous entered data presented to them.

This form should use single page processing/be all-in-one. Use POST.

I must validate all entered data.

Specifically, names should be letters, spaces, and apostrophes only, addresses should be broken into appropriate parts and check for validity (for example, zip code should be 5 digits; also, assume all addresses are US addresses), phone number should be in the format you request with appropriate instructions to the users, quantity should be a number, and delivery type should be one of your valid delivery types. Validation should always be done on the server side and also on the client side where applicable. Error messages should be displayed to the user in a way that is functional and useful; specifically, errors should be displayed to the user and instructions on what they need to do in order to correct it.

Thank you so much for your help, in advance!

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_2

Step: 3

blur-text-image_3

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 Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions