Good day,
I am trying to add data from the form into a sms that gets send to clickatell with php on submit.
The sms sends fine but the data does not pull through, can you please help with what I should put in so that the correct data gets send in the sms, here is how I have it with the field id in brackets, can you please assist as when the message get send it shows {data:first_name}, how can I get it to pull the field data from the form.
$username = urlencode("Lxxx");
$password = urlencode("place password here");
$api_id = urlencode("place api_id here");
$to = urlencode("mobile number");
$message = urlencode("{data:first_name}");
echo file_get_contents("https://api.clickatell.com/http/sendmsg"
. "?user=$username&password=$password&api_id=$api_id&to=$to&text=$message");
Thanks
Corne
I am trying to add data from the form into a sms that gets send to clickatell with php on submit.
The sms sends fine but the data does not pull through, can you please help with what I should put in so that the correct data gets send in the sms, here is how I have it with the field id in brackets, can you please assist as when the message get send it shows {data:first_name}, how can I get it to pull the field data from the form.
$username = urlencode("Lxxx");
$password = urlencode("place password here");
$api_id = urlencode("place api_id here");
$to = urlencode("mobile number");
$message = urlencode("{data:first_name}");
echo file_get_contents("https://api.clickatell.com/http/sendmsg"
. "?user=$username&password=$password&api_id=$api_id&to=$to&text=$message");
Thanks
Corne