Thursday, October 26th
Notes
- The Vermont Tech Jam is taking place this weekend. Read more about it here.
9:45 PHP
- When you may use an array
- Creating associative array
- Echoing out array data
- Select list in forms
10:15 Automotive Store
Today you are going to be creating an array that holds the prices of car parts. For this project you are going to have a 1 html and 1 php file.
In the html file (parts.html), you will have a form that allows me to select what car part I want to purchase. This form should be a simple drop down list and a submit button, nothing more. When I submit this form it will bring me to a page that prints off the part name that I selected and the associated price.
Your parts array should contain the following:
- Axel Back Exhaust – 172.68
- Rear Chrome Bumper – 323.98
- Inner Front Wheel Bearings -43.23
- Upper Front Ball Joint -46.24
- Lower Front Ball Joint – 37.19
- Front Strut – 65.99
- Rear Strut – 76.78
- Stereo – 110.17
- Rear Spring – 142.00
- Torsion Bar – 168.00
- Headlights – 234.10
- Battery – 89.99
- High Performance Battery – 169.99
- Windshield Wiper – 9.99
- Radiator – 151.99
- Standard – $10.98
- Expedited – $15.25
- Two Day – $24.95
- Next Day Air – $55.95
- Valid XHTML and PHP
- Form should have drop down list with list of parts
- Form should have drop down list with shipping options
- PHP page should print off part name and price of part selected from array
- PHP page should print off name of part, price of part and shipping selected from array
- PHP page should add together part and shipping price for a total
When complete upload to week_08 as parts.html and parts.php.
10:45 Break
11:00 Continue Automotive Store
11:15 UDK
12:00 Lunch (25 Minutes)
12:25 Attendance
12:25 UDK
12:40 Afternoon Class Dismissal



