RU beehive logo ITEC dept promo banner
ITEC 325
2011spring
ibarland

homelectsexamshws
breeze (snow day)

hw01-grade-guide
hw01 grading guide

Here are some grading guidelines for hw01; on individual papers I might take off slightly more or less than the indicated amounts depending on what else was handled in context.

Γρεεκ letters are used to label common mistakes.

  1. (15%) Part I: checkpoint: rough html and php that receives/prints the form's values.
  2. (20%) Part II html forms' look (using css, aligning checkboxes, list concentrations):
  3. (30%) Part III: correct validation, client side (js)
  4. (35%) Part IV: correct validation, server side (php)

Other issues:

Possible self-exercise, to help you understand the code in the provided solution: Scale it back so that: take the hw01-soln, and scale it back as follows:

Remember, javascript debuggers are your friends (e.g. Chrome's [Wrench] > Tools > Developer Tools > Javascript Console or the “firebug” add-on for FireFox and others).


1As we've seen, RU's web server uses “magic quotes”, which indeed makes it difficult for users to inject any quotation marks (which in turn makes it difficult to inject javascript). However, your code should not rely on the server doing this; it is an approach that has been deprecated in favor of programmers knowing that they should call htmlspecialcharacters as needed.      

homelectsexamshws
breeze (snow day)


©2011, Ian Barland, Radford University
Last modified 2011.Mar.04 (Fri)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme