Question: 1. PHP - HTML Form (1 mark) Create a web form in a php file to retrieve the users preferences. You may start by using

1. PHP - HTML Form (1 mark) Create a web form in a php file to retrieve the users preferences. You may start by using the following example code in your work: Conestoga Casserole Conestoga Sandwich Conestoga Pie Grilled Conestoga Conestoga Surprise 2. PHP - HTML Form (2 marks) Use a repetition structure and an array populated with the menu items to rewrite the web form. PROG1800 3. PHP - Output (2 marks) When the user submits the form, the data should be sent to the web server. Check the submitted data. If at least one choice was submitted, display a success message and print a list of the users preferences. If no choice was submitted, display an appropriate error message. (Hint: $_POST[preference] gives an array of selected checkbox items if the form was created as described above.) 4. PHP - Output (2 marks) Rewrite the business logic so that it uses a foreach repetition structure to create the displayed list of users preferences. 5. HTML Static Content - Instructions (1 mark) Be sure to explain to the user what your web application is supposed to do.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!