I want pass my Default message as well as variable value in url using php. My code not working with default message.. My code here:
$alertmsg= "Your verification code is $password
";
$url = "http://01.50.92.51/api/smsapi.aspx?username=xxxxxxx&password=xxxxxx&to=$mobiles&from=xxxx&message=$alertmsg";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$curl_scraped_page = curl_exec($ch);
curl_close($ch);
Please anyone help me.