PHP Assignment 2
You will create 4 pages for this assignment.
On all pages: create an include file that contains a common header image (like a logo or banner image) and navigation to all the pages.
Page 1:
Create a form select menu that contains options with 5 different animal names. When a user selects an animal, they should be taken to page 2 where they are shown an image of that animal, its name, and a short text description.
Page 2:
The image of the animal, name & description.
Page 3:
- Create a function to perform a math calculation of some kind, and return a result. Call the function
- Demonstrate that you can output 3 different server variables - such as the name of the current script, the server, and the complete file path. (check php.net for information about $_SERVER variables)
Page 4:
Build a form textarea where someone enters a list of books (comma seperated). Use explode to populate an array of the book titles. Loop through and show the book titles on new lines.
Looking for my Art? I've created a new site completely dedicated to showcasing my art. You can see my work at 