|
Due: 2018.Nov.07 (Wed) at start of class. Submit on D2L, and as usual have your a link to your form available at https://php.radford.edu/~yourUserId/itec325/hw06/index.php. (No hardcopy needed.)
Note: Points-possible are approximate, and may change somewhat when grading.
We will further improve on server-side-validation/’s Okaymon page by
adding client-side validation.
Make a copy of your directory from hw051, named hw06/.
(cp -pR hw05/ hw06 will
Be sure to use your named-constants file, for the field-lengths. (1/3 of the points are for that.)
Note that this interacts with our previously-written functions for generating dropdowns
and radio-buttons;
we now want to have those input tags include a
Write a separate javascript function which does this:
if the field is too big, it inserts the message-text into a nearby span whose
(You may write
Make sure that
You do not need to have your javascript in an external file, for this homework. In fact, doing so would mean that the external-javascript-file would be generated by a php program — either on each fetch, or a “dumb” which you are sure to re-generate each time you change the your okaymon-constants.php.
This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |