You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
680 B
23 lines
680 B
<?php
|
|
|
|
//Function to filter the form input
|
|
function user_input( $data ) {
|
|
$data1 = trim($data);
|
|
$data2 = stripslashes($data1);
|
|
$data3 = htmlspecialchars($data2);
|
|
return $data3;
|
|
}
|
|
|
|
#從此處以下開始的程式由系統自動產生
|
|
$application_no = user_input($_POST['application_no']);
|
|
$leave_staff_id = user_input($_POST['leave_staff_id']);
|
|
$day_off_type = user_input($_POST['day_off_type']);
|
|
$start_date = user_input($_POST['start_date']);
|
|
$end_date = user_input($_POST['end_date']);
|
|
$substitute_id = user_input($_POST['substitute_id']);
|
|
$reason = user_input($_POST['reason']);
|
|
$creater = user_input($_POST['creater']);
|
|
$create_at = date('Y/m/d H:i:s');
|
|
|
|
|
|
?>
|
|
|