CS222 Assignment 9: PHP


Instructor: Trish Cornez





Exercise 1

Create an html form, as shown in the figure below, and a php script using the following guidelines :
  1. Use at least one constant.
  2. Use either a two-dimensional array or three independent arrays to store a list of websites organized under the categories of Books, Computers, and Music.
  3. Read the user's name, email address, and area of interest.
  4. Determine if the email address is valid - research how to do this.
  5. Create output as shown below. This output should be a greeting using the user's name, verification of the email address, and a list of websites within the category they selected.
  6. Upload the web page, along with additional files, to your website. Upload the php file to Moodle.

Sample Test 1:

--output--


Sample Test 2:

--output--