PHP Programming (Online)
3 credits
Form is displayed and useable | 5 |
Comments placed the source code file | 5 |
Form class created and working (executes processor function when no errors are present, displays errors when present) | 25 |
Field class created and working (all attributes assigned correctly, validated, and can be required) | 25 |
Button class created and working (can submit and clear form) | 25 |
One other form component class created and working | 15 |
Total | 100 pts |
Practice using Classes and Objects
For this lab you will need to write the classes necessary to allow the script in the FormTest.php file to work. You are not required to implement all of the objects discussed in the script, only the form class, the field class, the button class, and one other class of your choosing (checkbox, radiobuttongroup, combobox, or textarea).
The form that is produced as a result of this script should be neat and easy to read and should be self validating according to parameters described in the comments in the script.
When your lab is complete you should turn in a copy of the classes you wrote in a file called FormTools.php and a copy of the FormTest.php file with statements commented out for components you did not implement.