Question: Make a web page that uses a cookie to keep track of how many times a user has viewed the page. The first time a

Make a web page that uses a cookie to keep track of how many times a user has viewed the page. The first time a particular user looks at the page, it should print something like Number of views: 1. The second time the user looks at the page, it should print Number of views: 2, and so on. Now have your code prints out a special message on the 5th, 10th, and 15th times the user looks at the page. On the 20th time the user looks at the page, it deletes the cookie and the page count starts over.

Write a PHP program that displays an order form. The order form should list six products. Next to each product name there should be a text box into which a user can enter how many of that product she wants to order. When the form is submitted, the submitted form data should be saved into the session. Make another page that displays the order confirmation page which displays the contents of the saved order and a link to Check Out. When the Check Out link is clicked, the order should be cleared from the session.

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!