?
Path : /home/admin/public_html/ |
Current File : /home/admin/public_html/remail.php |
<? require_once('config.php'); require_once('libs/global.php'); require_once('libs/MySql.php'); require_once('libs/function.php'); require_once('libs/backoff_ajax.php'); require_once('libs/backoff.php'); require_once('libs/menuTree.php'); require_once('libs/xajax/xajax.inc.php'); require_once('libs/xajax/xajaxExtend.php'); $db=new MySql; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <? if($_POST['email'] <> ""){ $result=$this->Query("insert into advertise (name_advertise,link_advertise) values ('{$_POST['email']}','".date("D d/M/Y H:i:s")."')"); if($result){ $error="ไม่สามารถบันทึกข้อมูลได้ในขณะนี้ค่ะ"; echo "<SCRIPT>alert(\"$error\"); window.history.back(); </SCRIPT>\n"; } } ?> </body> </html>