-1
これはcodeigniterのコントローラです。codeingiterを使用してSMSを送信します。「一部のパラメータがありません:送信者」
私は、印刷後のデータを印刷することができるが、私が送信していたときに、このエラーが来る:
「いくつかのパラメータが不足している:送信者」
public function sendsms(){
$mobile = $this->input->post('mobile');
$message = $this->input->post('message');
$data = $this->input->post();
$authKey = "********";
unset($data['submit']);
$mobilenumber = implode('', $data['mobile']);
$arr = str_split($mobilenumber, "10");
$numbers = implode(",", $arr);
$senderId = "REL";
$route = 4;
$postData = array(
'authkey' => $authKey,
'mobiles' => $numbers,
'message' => $message,
'senderId' => $senderId,
'route' => $route
);
$url = "********";
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_POST => true,
CURLOPT_URL => $url,
CURLOPT_POSTFIELDS => $postData,
CURLOPT_RETURNTRANSFER => true,
));
$output = curl_exec($ch);
curl_close($ch);
echo $output;
}
ご回答ありがとうございます、私は間違いを犯しました –