https://github.com/sa7mon/comp2145-web-programming
Projects and labs for COMP2145-Web Programming
https://github.com/sa7mon/comp2145-web-programming
Last synced: about 1 month ago
JSON representation
Projects and labs for COMP2145-Web Programming
- Host: GitHub
- URL: https://github.com/sa7mon/comp2145-web-programming
- Owner: sa7mon
- Created: 2014-11-17T17:04:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-17T17:30:43.000Z (over 11 years ago)
- Last Synced: 2025-02-19T10:18:18.696Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 504 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Project: PHP Array-Session
##Description
Knowing how to store data in an array and use it to build a good UI (User Interface) is a critical skill for today's web programmers.
This project will demonstrate the following:
+ I can set up and use a two-dimensional array.
+ I can display data from a 2D array using an HTML table.
+ I can build a listbox from an array.
+ My programs can figure out if a user is new or is returning for more information.
+ I can use sessions to "remember" information. This is necessary in order to build a working shopping cart.
+ I love using CSS to make my pages inviting and interesting for the user.
The project is designed so you can demonstrate what you know and understand about arrays and sessions variables.
##Specifications
###The customer should be able to do the following
+ See the current contents of their shopping cart.
+ Add new items by selecting choices from a drop-down list box built from data stored in an array.
+ Delete items from the caret using a drop-down list box built from data stored in an array.
###The code should include the following
- At least one single-dimensional array (used to populate the list boxes)
- At least one two-dimensional array (used to hold the ordered items)
- Code should all be contained in a single file using the $_SESSIONS[ ] array.
- Debug statements showing how to display variables and arrays. (These can be commented out.)
- HTML code using , and the id attribute for accessibility
- CSS used to improve the UX (User eXperience).
- An easy-to-find comment block near the top of the page that describes a problem you encountered and how you went about solving it.