< Back

Final Exam: Coding Portion


  1. Write a PHP program that allows users to enter items to be sold into a JSON database. The users should be able to specify the name of the item, it's price, and a URL for the image of the item. Your PHP script should read this information from the form, and store it in a JSON file.

  2. Write a webpage called ShoppingCart.php. This page should load and display 3 arbitrary items from the previous coding activity. It should allow the user to add a certain number of each item to their shopping cart. The modifications the user makes to their shopping cart should be made to persist across page refreshes as well as navigating away from the page. You should accomplish this using Session variables.

Email all of your files to both of these files to Scotty by 11:59 AM on December 11th, 2014.