function add_study_program_to_student_and_edit_student() { $id = $_POST['0']; $selitem = $_POST['9']; db_add_study_program_to_student($id, $selitem); save_student(); $st = db_retrieve_student_byID($id); addedit_student($st); }
<div class="shortcutHome"> <?php if (isset($_POST['submit'])) { $sin = $_POST['sin']; $fname = $_POST['fname']; $lname = $_POST['lname']; $address = $_POST['street']; $city = $_POST['city']; $postal = $_POST['postal']; $phone = $_POST['phone']; $gender = $_POST['gender']; $dob = $_POST['dob']; $dl = $_POST['dl']; $package = $_POST['package']; include 'includes/functions.php'; save_student($sin, $fname, $lname, $address, $city, $postal, $phone, $gender, $dob, $dl, $package); } ?> </div> <table width="95%"> <form name="newstudent" method="POST" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?> "> <tr><td width="125px"><b>First Name</b></td><td><input type="text" maxlength="15" autocomplete="off" name="fname" class="pendek" required></td></tr> <tr><td><b>Last Name</b></td><td><input type="text" name="lname" maxlength="15" autocomplete="off" class="pendek" required></td></tr> <tr><td><b>Date of Birth</b></td><td><input type="date" autocomplete="off" name="dob" class="pendek" required></td></tr> <tr><td><b>Street Address</b></td><td><input type="text" maxlength="25" size="25" autocomplete="off" name="street" class="panjang" required></td></tr> <tr><td><b>City</b></td><td>
<?php require_once './function.php'; save_student($_POST);