PHP Camp -- Day 4
Today's main task was to complete the pages for adding new games and reviews, and
to hook them up to the database. We did that and more.
Here's today's agenda:
- First we reviewed what was left to do in the project.
- I taught them about creating forms, which are pages that let you
enter information. The HTML is fairly easy, but the PHP to support
them is a bit trickier. See the cheat-sheet.
- I led them through the creation of their forms in a multi-step process:
- Create the display part of the forms
- Add PHP to read the entered values
- Add PHP to preserve the entered values in the form
- Add PHP check whether all values have been entered
- Display a warning message if they haven't
- Add information to the database if all values are ok
- Alex and Austin played with the formatting on the home page
- We modified the rating to display an average from all reviews
- Delicious cookies from the Sheltons were the treat of the day
Friday we'll be working on making everything nice and consistent.
Check it out!