So, I have a need to write a small script in the form of a web page so that we can poll it from an IVR system that will go out to a database, find a value based on an argument passed to the web page script, and return an XML response. However, I don't quite know how to pass arguments to a web page that's running a vbscript in the first place. It would be similar to this:html
body
script type="text/vbscript"
If WScript.arguments(0) <> "" Then
arg1 = "WScript.arguments(0)"
End If
document.write(arg1)
document.write("Hello.......")
/script
/body
/html
In this though, I used code that I know works for passing parameters to a locally run VBScript. Is it done the same way?
I just want to be able to do something like this:
http://site/?SOME_PARAMETER
....and the script would pick up the value of "SOME_PARAMETER".
I know, simple, right? I'm not really a developer anymore so I'm kind of rusty. Any ideas?