[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
simpeg
/
administrator
/
chat
/
[
Home
]
File: frame_bawah.php
<?php require_once("../../lib/konfigurasi_semua.php"); require_once("../../lib/konek.php"); if($_POST["chat_ket"]) { $sql = "select max(chat_id) as id from chat"; $Qrs = mysql_query($sql); $id = mysql_fetch_array($Qrs); $chat_id = $id["id"]+1; $sql = "insert into chat (chat_id,chat_tgl,chat_wkt,chat_ket,id_pgw) values (".$chat_id.",'".$skr."','".$wkt."','".$_POST["chat_ket"]."',".$pgw_id.")"; $rs = mysql_query($sql); // echo $sql; echo "<script>window.parent.document.location.href='main.php';</script>"; } ?> <html> <head> <title>Untitled Document</title> </head> <body background="../img/blue-bend.jpg"> <form name="frmEdit" method="POST" action="frame_bawah.php"> <fieldset> <legend>Pesan</legend> <center> <?php echo $defFont;?>Tulis Pesan Anda disini.<br> <input type="text" name="chat_ket" value="<?php echo $_POST["chat_ket"];?>" size="40" maxlength="255"> <input type="submit" name="Kirim" value="Kirim"> </center> </fieldset> </form> </body> </html>