Blog
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