Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to execute a querystring without a form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to execute a querystring without a form

 Post Reply Post Reply
Author
CMDevelopment View Drop Down
Newbie
Newbie


Joined: 15 August 2008
Location: UK
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote CMDevelopment Quote  Post ReplyReply Direct Link To This Post Topic: How to execute a querystring without a form
    Posted: 15 August 2008 at 12:08am
Hi,

I'm currently developing a website for a client and they want their support system to send them an SMS Message if the ticket priority is high, so they can act on it immediately.

The way the client has setup the SMS Service is via a querystring passed to their sms gateway's API.

Code:
Example: 

http://sms.gateway.com/SMSSend?user=username&pass=password&smsto=sendingtonumber&smsfrom=sendingfromID&report=1
I need to somehow execute the above querystring for it to send an sms, and the operator will return an SMS ID number if it is successful.

I'm new to the SMS Service area so i'm not sure how to go about this.

If anyone can help me it would be greatly appreciated as it will save me subcontracting this area of the website, thus saving time and money.

thanks

Craig
CM Development UK Ltd
Back to Top
alemcherry View Drop Down
Newbie
Newbie


Joined: 20 January 2008
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote alemcherry Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2008 at 2:01am
You have to make an http call to the mentioned URL from server side and pass the parameters. It is pretty simple. You can use ither microsoft built in component XMLHTTP or any thord party component for making the http connection with ASP. Take a lokk @ the article below for details.

http://www.4guysfromrolla.com/webtech/110100-1.shtml
Back to Top
CMDevelopment View Drop Down
Newbie
Newbie


Joined: 15 August 2008
Location: UK
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote CMDevelopment Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2008 at 2:08am
cheers m8y i cracked that one earlier

'Send the message
        set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
        objHttp.open "GET", "http://sms.gateway.com/SMSSend?" & zSMSAPI, false
        objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
        objHttp.Send
            strResponseTxt = trim(objHTTP.responseText)
        Set objHTTP = nothing

Thats how i managed it, but thanks for replying :)
Back to Top
shakir View Drop Down
Groupie
Groupie


Joined: 08 November 2007
Location: Saudi Arabia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote shakir Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 10:33am
You are using API. its based on the provider some API they will block 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.