foreach ($_POST['txtInstructors'] as $Instructor) { if (!is_numeric($Instructor)) { $Instructor_ID = $ClassMaster->ProcessInstructor($_POST['Company_Id'], $Instructor); $Instructors[] = $Instructor_ID; } else { $Instructors[] = $Instructor; } } } if ($_POST['txtRequirements'] == '') { $error .= "-Requirements required<br/>"; } else { $Requirements = array(); foreach ($_POST['txtRequirements'] as $Requirement) { if (!is_numeric($Requirement)) { $Requirement_ID = $ClassMaster->ProcessRequirement($_POST['Company_Id'], $Requirement); $Requirements[] = $Requirement_ID; } else { $Requirements[] = $Requirement; } } } if ($_POST['txtClassLength'] == '') { $error .= "-Length required<br/>"; } else { $tblClass['Class_Length'] = $_POST['txtClassLength']; } if ($_POST['txtClassPrice'] == '') { $error .= "-Price required<br/>"; } else { $tblClass['Class_Price'] = floatval($_POST['txtClassPrice']);