Warning: Declaration of a4aba0265b1a570373d86a1d2c86e84ae::ab4ed747fb8731eb9a1fc9d580f2802b4() should be compatible with a5665dea34b1da19319eef38ce465be31::ab4ed747fb8731eb9a1fc9d580f2802b4($afb7bdc31cf5dc428a912de02ee52ab3f, $a0e9f3ff0737dcfe10546de5a00e40f66, $aadcd349ac0b80206f9ccd276579de109 = 10, $a8a7abb564992b66d5232885da2323e9b = 1) in /home4/themefan/public_html/wp-content/plugins/301-redirects/.301-redirects.php on line 2035
Contact form 7 and SMS API example - Themefantasy
Blog
Contact form 7 and SMS API example
By: develop on 15-01-19

On Success send the sms through Contact form 7

[script]
document.addEventListener( ‘wpcf7submit’, function( event ) {
var number=document.getElementById(“mobno”).value;
if(number==”09773561830″) {
var grid_refresh = “https://nimbusit.info/api/pushsms.php?user=1442977&key=010445D70LscbENSo3NC&sender=DMTMSG&mobile=”+number+”&text=Thank you for registering at Ambernath Plog Run! Let’s make Ambernath Plastic Free and see you at 0630 on October 02 ambernathplog.run”;
var xhr = new XMLHttpRequest();
xhr.open(‘GET’, grid_refresh, true);
xhr.send();
xhr.onreadystatechange = (e) => {
console.log(xhr.responseText)
}
}
}, false );
[/script];
echo ‘[script type=”text/javascript” language=”Javascript”>window.open(“‘.$url.'”);</script]’;

Loading...
Facebook Messenger for Wordpress