Professional Documents
Culture Documents
Kelas : XI RPL 2
Web&android
Config2.php
<?php
$server="127.0.0.1";
$uname="root";
$pass="";
$db="guestbook_db";
Index2.php
<?php
inclide('insert2.php');
?>
Insert2.php
<?php
include("config2.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>guestbook - tambah</title>
</head>
<body>
<form action="" method="">
<input type="INT" name="form_id" placeholder= " ID"/>
<br>
<input type="DATE" name="form_tgl" placeholder="TANGAAL HADIR"/>
<br>
<input type="VARCHAR" name="form_nama" placeholder="NAMA LENGKAP"/>
<br>
<input type="VARCHAR" name="form_email" placeholder="NAMA EMAIL"/>
<br>
<input type="VARCHAR" name="form_judul" placeholder="NAMA JUDUL"/>
<br>
<input type="TEXT" nama="form_pesan" placeholder="PESAN"/>
<br>
<textarea name="form_alamat"placeholder="ALAMAT PAlSU"></textarea>
echo"sukses";
//echo<"meta http-equiv='refresh'content='1;url=insert.php'>";
$sql->close();
$connect->close();
}
?>
</body>
</html>