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.
 
 
 
 
 
 

24 lines
734 B

<?php
//Function to filter the form input
function user_input( $data ) {
$data1 = trim($data);
$data2 = stripslashes($data1);
$data3 = htmlspecialchars($data2);
return $data3;
}
#從此處以下開始的程式由系統自動產生
$day_off_no = user_input($_POST['day_off_no']);
$day_off_type = user_input($_POST['day_off_type']);
$day_off_typename = user_input($_POST['day_off_typename']);
$start_date = user_input($_POST['start_date']);
$end_date = user_input($_POST['end_date']);
$substitute_id = user_input($_POST['substitute_id']);
$substitute_name = user_input($_POST['substitute_name']);
$reason = user_input($_POST['reason']);
$creater = user_input($_POST['creater']);
$create_at = date('Y/m/d H:i:s');
?>