Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

PHP Programming (Online)

CSYS2463

3 credits

Labs

AutoForms

Lab

100 points

Requirements

Form is displayed and useable5
Comments placed the source code file5
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 working15
Total100 pts

Objective

Practice using Classes and Objects

Instructions

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.