In this part of the assignment, you continue to develop your website for used book buy and sale. You need to develop the following 3 additional web pages each with associate PHP code.
a. User registration page (registration.html)
b. User login page (login.html)
c. Book information form page for seller to enter book information for book sale (bookform.html)
With the user registration page, a user can enter information to create a user account on your website. The information includes the following entries: user id, password-1, password-2, first name, last name, street, city, province, country, postcode, and phone number. Implement user id, first name, last name, street, city, postcode, phone number entries as text fields in XHTML/FORM (input element with text type), implement password-1 and password-2 entries as password field (input element with password type), and implement province and country entries as dropdown menus (selection elements). For the country selection, just list "Canada". For the province selection, list all Canadian provinces. The submit button and rest button are also needed. Define action attribute with empty string value. Your PHPcode will check the following:
- User id: it must be an email address with form email@example.com, that is, there must be a single '@', on the left of '@' there must be some characters, on the right of '@' there must be at least one '.', on the both left and right sides of the right-most '.' there must be some characters. Write a PHP function with name "checkUserId()" to check this entry.
For the PHP for each of the above pages, you can either write it within the page, or as a separate PHP file.
The following are additional requirements for this part of the assignment:
- In "public_html" directory, create a new subdirectory with name "a2". Copy all web pages you created for assignment 1 from a1 directory to a2 directory. Modify those pages to add CSS to them with the following requirements:
a. Use each of the 3 levels, inline, document, and external, of CSS at least once
b. Use at least 3 selector forms
c. Use styles at least in 3 different categories
- Also deploy the 3 new web pages in a2 directory.
- In a2 directory modify the copy of the main page or index page that you created for assignment 1 to add hyperlinks to the 3 new web pages