CS 344 - Fall 2018: Assignments

Lab 5
Thursday, October 18, 2018

Write a "services.php" program that generates code similar to "services.html" in the "basic example" folder.

Specifics:

  1. Each of the service headings and descriptions should be hard-coded into an associative array named, $services, where the service heading is the key.
  2. The keys and items in the $services array should just be the relevant text, with no html markup.
  3. The number of Basic Services should be a variable.
  4. If the number of Basic Services is 4, just list the first 4 services. If the number is 5, then list all 5 services.
  5. For now, hard-code the value of the variable in the script, but use the variable to generate the html.
  6. Edit the files in the website so that the href value for the Services <a> element in the <nav> section of each page is "services.php"