我有一份注册表
提交注册表格时,使用将获得信息
我用过一个api
这是codeigniter的细节
尝试
{
//从https://onnorokomsms.com注册免费的模拟帐户
$userName = "01906008974";
$passWord = "67446";
$this->load->library("Nusoap_library");
$soapClient = new nusoap_client("https://api2.onnorokomSMS.com/sendSMS.asmx?wsdl", 'wsdl');
//Soap Unicode Support
$soapClient->soap_defencoding = 'UTF-8';
$soapClient->decode_utf8 = false;
//OneToOne
$paramArray = array(
'userName'=>$userName,
'userPassword'=>$passWord,
'mobileNumber'=> '01737349412',
'smsText'=>"This is theotonius",
'type'=>"TEXT",
'maskName'=> "DemoMask",
'campaignName'=>'',
);
// echo "before calling method";
$value = $soapClient->call("OneToOne", $paramArray);
echo 'Successfully register';
// One to Many
/*
$paramArray = array(
'userName'=>$userName,
'userPassword'=>$passWord,
'messageText'=>"Bulk SMS Send from CodeIgniter Test",
'numberList'=> "01811444729,01833168163",
'smsType'=>"TEXT",
'maskName'=> "DemoMask",
'campaignName'=>'',
);
echo "before calling method";
$value = $soapClient->call("OneToMany", $paramArray);
echo 'output is '; print_r($value);
*/
}
catch (Exception $e) {
echo $e;
}
尝试
{
//从https://onnorokomsms.com注册免费的模拟帐户
$userName = "01906008974";
$passWord = "67446";
$this->load->library("Nusoap_library");
$soapClient = new nusoap_client("https://api2.onnorokomSMS.com/sendSMS.asmx?wsdl", 'wsdl');
//Soap Unicode Support
$soapClient->soap_defencoding = 'UTF-8';
$soapClient->decode_utf8 = false;
//OneToOne
$paramArray = array(
'userName'=>$userName,
'userPassword'=>$passWord,
'mobileNumber'=> '01737349412',
'smsText'=>"This is theotonius",
'type'=>"TEXT",
'maskName'=> "DemoMask",
'campaignName'=>'',
);
// echo "before calling method";
$value = $soapClient->call("OneToOne", $paramArray);
echo 'Successfully register';
// One to Many
/*
$paramArray = array(
'userName'=>$userName,
'userPassword'=>$passWord,
'messageText'=>"Bulk SMS Send from CodeIgniter Test",
'numberList'=> "01811444729,01833168163",
'smsType'=>"TEXT",
'maskName'=> "DemoMask",
'campaignName'=>'',
);
echo "before calling method";
$value = $soapClient->call("OneToMany", $paramArray);
echo 'output is '; print_r($value);
*/
}
catch (Exception $e) {
echo $e;
}
消息已成功发送,但是当我提交可移动的无人注册表格时,输入字段出现问题,无法发送给注册用户。