Due March 10th, 11:59pm
As with all homeworks, you will submit this project in a two-step process:
- First, place all source code (stylesheets, html, php files, and your updated mysql table creation scripts) in a single h3 directory. You will submit this homework under the unique id h3 using turnin per the instructions on the course homepage.
- You will also put your assignment up on your personal webspace on z. Per the FAQ for z, you'll need to place these files in /u/z/users/cs105-s13/YOURCSID/h3.
Make sure your name, email address, and eid are in a comment at the top of each file you submit.
The above due date now reflects a deadline for substantial completion of the assignment. 'Successful completion' in this case means doing at least the first two bullet points and taking a stab at the third. I will grade your submissions, offer you feedback and enter the points into the gradebook. As long as your submission for the final homework addresses my feedback and implements all three bullet points, you will receive full credit for the assignment. Of course, if you complete the assignment now, you will be able to focus on homework four.
This assignment has you make two minor and one major one to your existing website.
addition to the server-side php validation. Use the same criteria
on the page telling the user what the problem was.
Client-side validation is nice because it lets the user immediately now if there is a problem with their data. Of course, it cannot completely replace server-side validation, because malicious users can get around this barrier, and it is important to check data consistency before it is inserted into a database.
to let users add tag the faces of their friends in pictures. Basically
this is a simpler form of what facebook does.
In a real system, users would be able to upload their own photos to the server. This is what bonus points are for. I recommend you simply add four or five stock photos to an image directory on your website to use for this part of the assignment.
- You need to add two new tables to your database. The first will simply have a column of user IDs, a column of photo IDs, and the URL of the image on the server; rows will store which photos belong to each user. The second table will keep track of which users are in each photo using columns for photo IDs, user IDs, x-coordinates and y-coordinates; each row will store the appearance of a friend in a photo and the location of their face in that photo. Update your mysql script from homework 2 to also create these tables and populate them with default data. Use the stock images mentioned above in these default rows.
- There will need to be a new photo page used to display the photos associated with a given user. The page should display a photo and a list of all the friends in the photo. Each User's profile page should now have a link to their photo page. Just like with the profile page, I would suggest using query strings to choose user's photos to display.