$v) { $$k = htmlspecialchars(stripslashes(trim($v))); } /* $contractno = user_input($_POST["contractno"]); $facilityno = user_input($_POST["facilityno"]); $receivable_date = user_input($_POST["receivable_date"]); $actual_date = user_input($_POST["actual_date"]); $receivable = user_input($_POST["receivable"]); $actual = user_input($_POST["actual"]); $currency = user_input($_POST["currency"]); $owner = user_input($_POST["owner"]); $status = user_input($_POST["status"]); $note = user_input($_POST["note"]); $creater = user_input($_POST["creater"]); $create_at = date('Y/m/d H:i:s'); */ /* if(empty($_POST["name"])) { $name_error = "Name is required"; } else { $name = user_input($_POST["name"]); if(!preg_match("/^[a-zA-Z ]*$/", $name)) { $name_error = "Only letter and white space are allowed"; } } /* if(empty($_POST["website"])) { $website_error = "Website address is required"; } else { $website = user_input($_POST["website"]); if(!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i", $website)) { $website_error = "Invalid website URL"; } } if(empty($_POST["comment"])) { $comment = ""; } else { $comment = user_input($_POST["comment"]); } */ ?>