|
Due: 2018.Apr.03 (Tue)05 (Thu) 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/hw0706/index.php.
(No hardcopy needed.)
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 2018.Apr.03 (Tue) | Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |