require('include/conn.php');
require('include/function.php');
require('include/smtp.php');
require('include/_site_info.php');
session_start();
$u = fixsql("u",1);
if($u=="ok"){
$s_contact = fixsql("s_contact",1);
$s_company = fixsql("s_company",1);
$s_website = fixsql("s_website",1);
$s_country = fixsql("s_country",1);
$s_address = fixsql("s_address",1);
$s_fax = fixsql("s_fax",1);
$s_phone = fixsql("s_phone",1);
$s_email = fixsql("s_email",1);
$s_product = fixsql("s_product",1);
$s_comments = fixsql("s_comments",1);
if($udate==""){
$udate = date('Y.m.d',time());
}
$check_number = fixsql("check_number",1);
if($check_number != $_SESSION["login_check_number"]){
$strErr = "Please valid Security Code";
$s_contact = fixsql("s_contact",1);
$s_company = fixsql("s_company",1);
$s_website = fixsql("s_website",1);
$s_country = fixsql("s_country",1);
$s_address = fixsql("s_address",1);
$s_fax = fixsql("s_fax",1);
$s_phone = fixsql("s_phone",1);
$s_email = fixsql("s_email",1);
$s_product = fixsql("s_product",1);
$s_comments = fixsql("s_comments",1);
}else{
$body = "";
$body.= "
";
$body.= "";
$body.= "4clean Contact US /";
$body.= "";
$body.= "";
$body.= "";
$body.= "";
$body.= " ";
$body.= " | 聯絡人/Contact Person: | ";
$body.= " $s_contact | ";
$body.= "
";
$body.= " ";
$body.= " | 公司/Company: | ";
$body.= " $s_company | ";
$body.= "
";
$body.= " ";
$body.= " | 網站/Website: | ";
$body.= " $s_website | ";
$body.= "
";
$body.= " ";
$body.= " | 國家/Country:: | ";
$body.= " $s_country | ";
$body.= "
";
$body.= " ";
$body.= " | 地址/Address:: | ";
$body.= " $s_address | ";
$body.= "
";
$body.= " ";
$body.= " | | ";
$body.= " | ";
$body.= "
";
$body.= " ";
$body.= " | 連絡電話/Phone No | ";
$body.= " $s_phone | ";
$body.= "
";
$body.= " ";
$body.= " | 傳真/FAX | ";
$body.= " $s_fax | ";
$body.= "
";
$body.= " ";
$body.= " | | ";
$body.= " | ";
$body.= "
";
$body.= " ";
$body.= " | Product Inquiry | ";
$body.= " $s_product | ";
$body.= "
";
$body.= " ";
$body.= " | Comments | ";
$body.= " $s_comments | ";
$body.= "
";
$body.= " ";
$body.= " | E-Mail | ";
$body.= " $s_email | ";
$body.= "
";
$body.= " ";
$body.= " | | ";
$body.= " | ";
$body.= "
";
$body.= " ";
$body.= " | 發送日期 | ";
$body.= " " . $udate . " | ";
$body.= "
";
$body.= "
";
$body.= "";
$body.= "";
$sql = "insert into member(s_contact,s_company,s_email,s_website,s_country,s_address,s_phone,s_fax,s_product,s_comments,udate) values(";
$sql .= "'$s_contact','$s_company','$s_email','$s_website','$s_country','$s_address','$s_phone','$s_fax','$s_product','$s_comments','$udate')";
//echo $sql;
mysql_query($sql,$link) or die("query db false!!!");
mysql_close($link);
//echo $body;exit;
//$sql = "select smtp_email,smtp_server,smtp_user,smtp_pass from smtp where site_id=$site_id";
//mysql_query("SET NAMES 'UTF8'");
//$rs = mysql_query($sql,$link) or die("Query failed");
//if($line=mysql_fetch_array($rs,MYSQL_ASSOC)){
// $db_s_email = "askasb@gmail.com";
// $smtp_server = "msa.hinet.net";
// $smtp_user = "aska.sb";
// $smtp_pass = "1q2w3e4r";
//}
// mysql_free_result($rs);
$subject ="Inquiry from 4CLEAN Website";
$from_name = "$s_real_name";
@mysendmail("askasb@gmail.com",$s_email,$from_name,$subject,$body,"gate.sinica.edu.tw","aservice@gate.sinica.edu.tw","WGLL9EH");
@mysendmail("nelson@prosben.com",$s_email,$from_name,$subject,$body,"gate.sinica.edu.tw","aservice@gate.sinica.edu.tw","WGLL9EH");
@mysendmail("4clean.nelson@gmail.com",$s_email,$from_name,$subject,$body,"gate.sinica.edu.tw","aservice@gate.sinica.edu.tw","WGLL9EH");
$strErr = "Thank You Write This we'll be contact You in Soon!";
}
}
for($Tmpa=0;$Tmpa<4;$Tmpa++){
$nmsg.=dechex(rand(0,15));
}
$_SESSION["login_check_number"] = $nmsg;
?>
4CLEAN, THE BEST FOR CLEANING.
| |
 |
| |
| require('_smoothmenu.php');?> |
| |
| |
|
|
| |
 |
 |
 |
|
| CONTACT US |
|
8F.,No.58,Sec.3, Ming Chuan East Road Taipei 104, Taiwan |
|
TEL:886-2-2500 0586 FAX:886-2-2500 0945 |
|
EMAIL:Nelson@prosben.com |
|
|
| |
|
|
}?>