 |
|
$strsql_head= sprintf("select * from tbtemplate_menu where idgroup='%s' and idmenu='%s' and status='%s' ",
mysql_real_escape_string($id),
mysql_real_escape_string($menu),
mysql_real_escape_string("Y"));
$result_head=mysql_query($strsql_head);
$rs_head=mysql_fetch_array($result_head);
?>
|
 |
} else if ($act=="sent") {?>
if ((empty($secCode)||($_POST['secCode'] != $_SESSION['secCode']))) {
echo " ʡʵ١ͧ ";
} else if ($name == "" || $email == "" || $comment == "") {
echo " ҹ͡ú ";
} else { //if ($name == "" || $email == "" || $comment == "") {
$chk_email=strstr($email,"@");
$chk_email=strstr($email,".");
if (empty($chk_email)) {
echo " ҹ͡١ͧ ";
} else { //if (empty($chk_email)) {
//Begin Send mail
$IP=$REMOTE_ADDR;
$date_now=date("Y-m-d H:i:s");
$head = "From: $email\n";
$head .= "Content-Type: text/html; charset=windows-874\n";
$body = "س $name : $email Դ : $comment
IP : $IP : $date_now";
if (mail("webmaster@broadcastthai.com","Contact ".$rs_t['head']." : ռ觤Դ",$body,$head)) {
echo " ʹТͧҹ١ѧº ";
} else {
echo " ö觤Դ繢ͧҹ ";
}//end if mail
//End Send mail
}//end if (empty($chk_email)) {
}//end if ($name == "" || $email == "" || $comment == "") {
?>
Ѻ˹Ẻ |
}?> |
|
|