|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_eoffice/application/ |
Upload File : |
<?
include "../config/config.inc.php";
include ("../function/function.php");
include "../common/sms_function.php";
$MsgType="T";
$sms_User="sapphire";
$sms_Password="es53y7h";
$defualt_mobile="0861860538,0866769195,0856167198";
//$defualt_mobile="086676915";
$array=explode(",",$defualt_mobile);
$appid='5';
$RefNo="1001";//1001-9999
$Sender="Eoffice";
$Msn=($mobile_phone)?"$mobile_phone":"$defualt_mobile";//for exemple 097694213
$Msg=" ทายสิใครเอ๋ย ";
$MsgType="T"; // E สำหรับภาษาอังกฤษ และ T สำหรับภาษาไทย (ภาษาไทย 70 ตัวอักษร ภาษาอังกฤษ 160 ตัวอักษร) ถ้าเกินจะส่งไม่สำเร็จ
$User="$sms_User";
$Password="$sms_Password";
foreach($array as $Msa => $Msn){
$result_sms=sendRequest($host,$method,$path,'RefNo='.$RefNo.'&Sender='.$Sender.'&Msn='.$Msn.'&Msg='.$Msg.'&MsgType='.$MsgType.'&User='.$User.'&Password='.$Password);
}
?>
<!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=windows-874" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
เบอร์โทร :
<input type="text" name="textfield" />
<br />
ข้อความ :
<input type="text" name="textfield2" />
<br />
<br />
<input type="submit" name="Submit" value="Submit" />
<br />
</form>
<?
?>
</body>
</html>