Assignment: Understanding the Request-Response Cycle

Your application will be a single index.php file with some elements in HTML, some elements in PHP, and some elements in JavaScript - all working in the same file. Make sure to save your screen shots JPG or PNG files and keep them less than 1MB. You must include the URL bar in all of your screen shots and the software must be running in your PHP server (i.e. file:// urls will not be accepted)

You must run these files in your PHP server. Make a folder under your DOCUMENT_ROOT and then make sure your files are in that file. Sample DOCUMENT_ROOT values for some servers:
DOCUMENT_ROOT: c:\xampp\htdocs
DOCUMENT_ROOT: /Applications/MAMP/htdocs
You can check the DOCUMENT_ROOT value for your server by scrolling down in your PHPInfo output. You may have changed a setting in your PHP server to move the DOCUMENT_ROOT and that is OK as well.

Just make sure all the files are in a folder somewhere within DOCUMENT_ROOT and that all your testing uses localhost URLs like:

http://localhost:8888/wa4e/rrc/index.php
If you turn in screen shots with file:// in the URL you will get zero points for the assignment.

Sample solution

You can explore a sample solution for this problem at

http://www.wa4e.com/solutions/rrc/

Resources

There are several sources of information so you can do the assignment:

What To Hand In

For this assignment you will hand in:

  1. Image of your application showing the URL bar, alert box and the rest of the output.
  2. Image of your application showing the URL bar, console and the rest of the output
  3. Image of your application showing the URL bar and output of fail.php
  4. Image of your application showing the URL bar output of check.php
  5. Source code of your index.php

Grading

Please review carefully. The actual points are less important and useful comments about what might be wrong and need fixing. You cannot re-submit your assignment unless the instructor allows you to resubmit.

The total number of points for this assignment is 10. You will get up to 5 points from your instructor. You will get up to 3 points from your peers. You will get 1 for each peer assignment you assess. You need to grade a minimum of 2 peer assignments. You can grade up to 5 peer assignments if you like.

Sample Screen Shots

Optional Challenges

This section is entirely optional and is here in case you want to explore a bit more deeply and test your code skillz.

Here is a possible improvement:


Provided by: www.wa4e.com

Copyright Creative Commons Attribution 3.0 - Charles R. Severance