You have been contracted by a local pizza restaurant, Pizza Byte, to create an online form to allow customers to order pizza online and to be delivered to a specified location. creating a website. This will include the form to submit the order, the processing of the order and the display of an order receipt.
You have been contracted by a local pizza restaurant, Pizza Byte, to create an online form to allow customers to order pizza online and to be delivered to a specified location. creating a website. This will include the form to submit the order, the processing of the order and the display of an order receipt.
Form:
The owner of the restaurant has given you a mock-up of how he thinks the site should look like:
There should be restraints on the data that is entered into the form. Once the form is submitted, all of the data should be checked to make sure it is valid. I will be using a different script to insert invalid information to check this. If there are any errors, the form should be redisplayed with any valid data already filled in. Once that data has been validated an order receipt for the order should be displayed.
Create PHP script file(s) for the form the entry of the order and redisplay of the order information and the display of the receipt:
- Create a script that displays the form.
- You do not have to do the form exactly as it is shown. Keep the graphics and the general idea, but you can be creative with the form.
- Use the HTML Input Tags to help with data input.
- If there is incorrect or missing data, redisplay the form with an valid data already inserted into the form.
- When the data from the form has been submitted and it has been validated, display an order receipt.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images