Wednesday, September 28th
Notes
- Grades close on Friday for progress report 1.
- We had 2 students who should have stayed after yesterday due to grades that did not. This negatively affects your worker trait grade among other things.
- Small PHP quiz on Tuesday.
9:40 Attendance
9:45 Boston AI Presentations
10:45 Break
11:00 PHP
- Date function
- Date function on PHP.Net
- Less than and greater than operators
- And operator
11:10 Partner PHP Website
This morning you will be working on a project with a partner based in PHP and XHTML. This project will include a basic 2 input form on the HTML page that takes the users first name and last name. This will be sent to a PHP file that collects the variables and prints off a welcome to the user.
The welcome message to the user will change based on the time. So that when a user visits your site in the morning, it will say good morning to the user and not good afternoon.
The PHP page is also going to link to 4 different CSS files based on the time. When a visitor goes to your page in the day, it will have a yellow background to signify sunlight. Your HTML page doesn’t need to have a CSS file.
When your done you will have to upload a TXT version of your PHP file so that I can grade your file without having to visit 4 different times throughout the day.
Requirements:
- Valid XHTML on both Form page and PHP page.
- 2 text inputs with labels for first and last name.
- Echo off ”Welcome First Last. The date is Weekday, Month the NumberSuffix. “
- Your welcome statement should be Good morning from 5am to 12pm.
- Your welcome statement should be Good afternoon from 1pm to 8pm.
- Your welcome statement should be Good night from 8pm to 4am.
- Your CSS files should go in a style folder.
- Have sunrise.css. (5am – 8am). This should have orange bg. Black text.
- Have day.css. (8am – 5pm). This should have yellow bg. Black text.
- Have sunset.css. (6am – 8pm). This should have red bg. Black text.
- Have night.css. (9pm – 4am). This should have black bg. White text.
- If statements for empty inputs to ask the user to fill out the form properly.
Partners:
- Gingras – Riley
- Gianuzzi -Warren
- Jackson - Chace
- Benedict - Bogue
- Lizzie – French
12:00 Lunch (25 Minutes)
12:25 Attendance
12:25 Continue work on Partner PHP project
12:40 Afternoon Class Dismissal



