Code:Array Functions 2

<?php /** * @author Mihaela Sabin mihaela.sabin@unh.edu * @version 2 - Sep 26, 2010 * * FILE: array_functions2.php * * DESCRIPTION * * Builds on array_functions1.php and designs the GUI forms. * * In the presentation section, we design the forms to add and drop a course by * implementing the addCourseForm and dropCourseForm functions. * * In the control section we have a debugging feature: all the keys and values * in the $_POST array are echo-ed to inform about the status of the web request. * * The control logic has a conditional with three alternatives. If the course * add form has been submitted, then we call addCourseControl function. * Otherwise, if the course drop form has been submitted, then we call * dropCourseControl function. * Otherwise (meaning that none of this program's forms has been submitted yet), we * output a welcome message. * */