Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Modify your Products page to include an Add link, under each item (this link is a simple tag that will direct the user to another

Modify your Products page to include an Add link, under each item (this link is a simple tag that will direct the user to another page, that will add the item to a cookie list). When the user clicks Add, he or she is directed to the Shopping Cart page (a PHP page that runs on the server side) where the item is stored inside a cookie. Your Products page needs to also have a Remove link next to the Add link. When the user clicks Remove, the item needs to be removed by simply deleting its information from the cookie where the item was stored. It is a good idea to use the item Name or ID as an indicator to determine which cookie to remove. The Shopping Cart PHP page needs to add the item to a cookie list and then display the contents of the cookie list to the userto show the items added to the cart. The items can be displayed in a table format. Remember, each item is stored in a different cookie or you can use one cookie to store all the items, you simply add a separator between each item. For example, a cookie could contain the following items: Hat, Pants, and T-Shirt. You can use PHP script to parse the cookie content by splitting the contents into three separate items or you may also use an array of cookies to store multiple items.

I want to use an existing XML file for this application. Not a sql database. Thanks!!

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

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

Begin, middle and end well Organize efficiently

Answered: 1 week ago