close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Running a url on update or inserting a record

Thread began 9/02/2016 9:26 am by Kumel | Last modified 9/06/2016 1:22 pm by Ray Borduin | 416 views | 3 replies |

Kumel

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

Sign in to reply to this post

Kumel

OR May be i thought have a checkbox called send sms.

So my redirect rule is :

$WA_redirectURL = "bookings.php?HID=[Insert_ID]";

once after inserting record it takes me to bookings.php

So it is possible to have link something like

$WA_redirectURL = "bookings.php?HID=[Insert_ID]&sendsms=selected";

so above link must be if i had checked the checkbox named sendsms! that would be simpler for me to integrate the same sms codes in next page


PROBABLY TWO CHECKBOXES. ( TWO DIFFERENT SMS ARE SENT SO ) SO WHICHEVER IS CHECKED IT MUST SHOW IN LINK

checkboxes names are sendsms1 & sendsms2

Sign in to reply to this post

Ray BorduinWebAssist

That could work:

$WA_redirectURL = "bookings.php?HID=[Insert_ID]&sendsms=" . (isset($_POST['sendsms'])?"1":"") ."&sendsms2=" . (isset($_POST['sendsms2'])?"1":"") ."";

Sign in to reply to this post

Kumel

thanks

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...