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.
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.
The image of the animal, name & description.
- 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)
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.