I wanted to create a class that really utilizes the Forms Class to it's maximum potential. The following example is how to add an employee to your website so that he may access it with employee privileges. You'll first have to create the tables within your database. The following tables are used in this example: employees Stores the employee details id, first_name, last_name, location, street, street_two, zip, telephone, email, active, date_started, date_terminated users Stores the login information id, user_id, password, token, user_type, active locations Allows for multi-location support id, location, street_address, zip, phone, active user_types Lists the different user type privileges id, description The code itself is pretty straight forward. Start with __construct() and follow main(). The user will be presented with the form to enter employee details Checks will be administered to verify data accuracy User is inserted into employees and user...
The True purpose of education is to make minds, not careers.