| .. | |||||
| .htaccess | |||||
| contact.php | |||||
| fetch_pages.php | |||||
| foot.php | |||||
| getDataStat.php | |||||
| head.php | |||||
| importJS.php | |||||
| index.html | |||||
| nav.php | |||||
| sidebar.php | |||||
| simple_html_dom.php | |||||
| visitor_log.php |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.108 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/home/part/ |
Upload File : |
<?php
$hostname = "localhost";
$database = 'perizinanOnline';
$username = 'root';
$password ='pus4td4t4/2017/1Z1N';
try {
$conn = new PDO("mysql:host=".$hostname.";dbname=".$database, $username, $password);
$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );
}
catch(PDOException $e)
{
echo "Koneksi Database Gagal : " . $e->getMessage();
}
$stmt = $conn->prepare("INSERT INTO kotaksaran
(kspUserID, kspIsi, kspJenis, kspTgl, kspStatus)
VALUES (:kspUserID, :kspIsi, :kspJenis, :kspTgl, :kspStatus) ");
$data = array(
':kspUserID'=>$_POST['Nama'].' / '.$_POST['email'],
':kspJenis'=>$_POST['Jenis'],
':kspIsi'=>$_POST['message'].'<br>'.'Nama : '.$_POST['Nama'].'<br>'.'Alamat : '.$_POST['Alamat'].'<br>'.'No HP : '.$_POST['phone'],
':kspTgl'=>date('Y-m-d H:i:s'),
':kspStatus'=>0
);
if ($stmt->execute($data)) {
header('location:http://dpmptsp.pekanbaru.go.id/Kontak/');
}else{
header('location:http://dpmptsp.pekanbaru.go.id/Kontak/');
}
?>
| .. | |||||
| .htaccess | |||||
| contact.php | |||||
| fetch_pages.php | |||||
| foot.php | |||||
| getDataStat.php | |||||
| head.php | |||||
| importJS.php | |||||
| index.html | |||||
| nav.php | |||||
| sidebar.php | |||||
| simple_html_dom.php | |||||
| visitor_log.php |