%PDF-1.5 % ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY
| Server IP : 122.155.177.87 / Your IP : 122.155.177.87 Web Server : Apache/2 System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 User : apache ( 994) PHP Version : 5.3.29 Disable Function : dl,eval,exec,mail,passthru,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_open,putenv,shell_exec,show_source,system MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/moungngam/domains/moungngam.go.th/public_html/ |
Upload File : |
<?php
session_start();
require 'request-system/config/db.php';
if(isset($_POST['submit'])){
$fullname = $_POST['fullname'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$detail = $_POST['detail'];
$request_no = "REQ-".date("YmdHis");
$stmt = $conn->prepare("
INSERT INTO request_information(
request_no,
fullname,
phone,
email,
request_subject,
request_detail
)
VALUES(?,?,?,?,?,?)
");
$stmt->execute([
$request_no,
$fullname,
$phone,
$email,
$subject,
$detail
]);
echo "<script>alert('บันทึกข้อมูลเรียบร้อย เลขคำร้อง : ".$request_no."');</script>";
}
?>
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<title>คำร้องขอข้อมูลข่าวสารของราชการ</title>
<link rel="stylesheet" href="request-system/assets/style.css">
</head>
<body>
<div class="container">
<h1>คำร้องขอข้อมูลข่าวสารของราชการ</h1>
<form method="post">
<label>ชื่อ - นามสกุล</label>
<input type="text" name="fullname" required>
<label>เบอร์โทรศัพท์</label>
<input type="text" name="phone">
<label>Email</label>
<input type="email" name="email">
<label>เรื่อง</label>
<input type="text" name="subject" required>
<label>รายละเอียด</label>
<textarea name="detail" required></textarea>
<button type="submit" name="submit">
ส่งคำร้อง
</button>
</form>
<a href="request-system/check_status.php">ตรวจสอบสถานะคำร้อง</a>
</div>
</body>
</html>