-1
$ _POST変数の前後に静的な句を挿入するにはどうしたらいいですか?あなたには、いくつかの単語が実際にあるかどうかを示唆するために何のヒントがないので、これは明らかに間違っている知っているように
'text' => Hello, $_POST["name"] Thank you for registering. Your unique membership ID is $_POST["memid"] More details have been sent on $_POST["email"]
:
<?php
require_once '/home/example/public_html/sms/vendor/autoload.php';
use Plivo\RestAPI;
$auth_id = "MAM2IXMDVLNZI3xxxxxx";
$auth_token = "YmI0NmQyZWQ5MDcwNjEyNjc4ZTMxYjNhMmxxxxxx";
$p = new RestAPI($auth_id, $auth_token);
// Send a message
$params = array(
'src' => 'AcmeLLC', // Sender's phone number with country code
'dst' => $_POST["dst"], //Receiver's phone number with country code
'text' => $_POST["text"], // Your SMS text message
//'url' => 'http://example.com/sms.html', // The URL to which with the status of the message is sent
'method' => 'POST' // The method used to call the url
);
// Send message
$response = $p->send_message($params);
// Print the response
echo "Response : ";
print_r ($response['response']);
// Print the Api ID
echo "<br> Api ID : {$response['response']['api_id']} <br>";
// Print the Message UUID
echo "Message UUID : {$response['response']['message_uuid'][0]} <br>";
?>
が、私はこのような何かを達成したい:ここで私が使用しているコードです静的およびその他は、重力フォームからPOSTを介して受信されます。これについてどうすればいいですか?
ありがとうございます!ここで
ありがとうございました!これは完全に機能しました!私はそれが簡単な答えを持っていることを知っていましたが、これはPHPの初心者であり、私にとって大きな成果となりました。 :) – physx911
@ngrhdあなたを助けてくれてうれしい!答えを正しいとマークしてください:) –