Function and Class sample code in PHP
PHP Lecture notes - forms and classes and functions