$e_provided4 = $_POST["equip4"]; $e_serial4 = $_POST["serial4"]; $e_provided5 = $_POST["equip5"]; $e_serial5 = $_POST["serial5"]; $user->addNetAd($jrNumber, $e_provided1, $e_serial1, $e_provided2, $e_serial2, $e_provided3, $e_serial3, $e_provided4, $e_serial4, $e_provided5, $e_serial5); } } } else { $user->addMIS($jrNumber, $service_type, $details, $total_time, $assigned_personnel, $total_amount); } } else { $equipment = $_POST['rent_equipment']; $total_amount = $_POST['rent_total_amount']; $monthly_payment = $_POST['rent_monthly_payment']; $end_of_contract = $_POST['rent_end']; $user->addRent($jrNumber, $equipment, $total_amount, $monthly_payment, $end_of_contract); } echo '<script>alert("Added Successfully!")</script>'; //header('Location: produceJR.php'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" href="css/style.css"/> <script src="js/jquery-1.9.1.js"></script> <script type="text/javascript"> function hideShowOthers(obj,id){ var a = document.getElementById('office').value;