Running a url on update or inserting a record
I have a update record page where certain records are updated.
Also on updating a record an sms needs to be sent a user.
I have complete sms api integrated.
When i add following code to end of a page sms does get sent.
<script>
$(function(){
$("#header").load("https://control.msg91.com/api/sendhttp.php?authkey=apikey&mobiles=7259104089&message=Hi%20Passenger%20Name%2C%20for%20your%20Booking%20ID%3A%20123%2C%20a%20driver%20has%20been%20assigned.%20Driver%20Name%3A%20Kumel.%20Driver%20Phone%20%3A%201123&sender=VAAHAN&route=4");
});
</script>
But how do we send this sms when a record is updated.
The values will be from recordset. above are jsut sample message.
I would like to know how can i upload the above link when records are updated.
the link to send sms is just :
https://control.msg91.com/api/sendhttp.php?authkey=apikey&mobiles=7259104089&message=Hi%20Passenger%20Name%2C%20for%20your%20Booking%20ID%3A%20123%2C%20a%20driver%20has%20been%20assigned.%20Driver%20Name%3A%20Kumel.%20Driver%20Phone%20%3A%201123&sender=VAAHAN&route=4
Working File also attached.
Regards