} if ($_POST['btn_submit']) { log_action('Pressed submit button'); $message .= $dbh_eval_hdr->sanitize($arr_form_data)->lst_error; extract($arr_form_data); if ($dbh_eval_hdr->check_uniqueness_for_editing($arr_form_data)->is_unique) { //Good, no duplicate in database } else { $message = "Record already exists with the same primary identifiers!"; } if ($message == "") { $dbh_eval_hdr->edit($arr_form_data); require_once 'subclasses/eval_dtl.php'; $dbh_eval_hdr = new eval_dtl(); //$dbh_eval_hdr->delete_many($arr_form_data); $dbh_eval_hdr->delete_data($id); for ($a = 0; $a < $eval_dtl_count; $a++) { $param = array('questionnaire_id' => $cf_eval_dtl_questionnaire_id[$a], 'eval_hdr_id' => $id, 'response_rating' => $cf_eval_dtl_response_rating[$a], 'response_detail' => $cf_eval_dtl_response_detail[$a]); $dbh_eval_hdr->add($param); } redirect("listview_eval_hdr.php?{$query_string}"); } } } require 'subclasses/eval_hdr_html.php'; $html = new eval_hdr_html(); $html->draw_header('Edit Eval Hdr', $message, $message_type); $html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc); $html->draw_hidden('id'); $username = "******"; $password = "";