﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / Internet/Communications Programming  / Really Simple VBScript problem (Embarassingly Simple) / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 09 Feb 2012 04:14:57 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Really Simple VBScript problem (Embarassingly Simple)</title><link>http://www.a1vbcode.com/vbforums/Topic27853-6-1.aspx</link><description>how do we make asp check the case of the strings entered.i currently have a running db login... the thing is that i cant make asp check the case of the passwords entered..... and my search pages cant distinguish between "product" and "product" in a search page.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href="http://www.onlinebingofriends.com/"&gt; online bingo &lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Sat, 07 Aug 2010 01:59:59 GMT</pubDate><dc:creator>arjonsk</dc:creator></item><item><title>RE: Really Simple VBScript problem (Embarassingly Simple)</title><link>http://www.a1vbcode.com/vbforums/Topic27853-6-1.aspx</link><description>Yeah - it works now. That whole post could have been reduced to the last paragraph, that's all I needed. Sorry that he wore his keyboard down. &lt;br&gt;&lt;br&gt;That's it...I just needed the syntax for it. I'll just grab the whole string since there's only going to be one value passed to this script. Only thing left is to do a database dip.</description><pubDate>Tue, 07 Jul 2009 22:14:24 GMT</pubDate><dc:creator>Mobius</dc:creator></item><item><title>RE: Really Simple VBScript problem (Embarassingly Simple)</title><link>http://www.a1vbcode.com/vbforums/Topic27853-6-1.aspx</link><description>OK, if you navigate to &lt;A href="http://site/something.asp?name=John&amp;amp;age=30"&gt;http://site/something.asp?name=John&amp;amp;age=30&lt;/A&gt; are you able to pull the name and age values?&lt;/P&gt;&lt;P&gt;What exactly do you need next?</description><pubDate>Tue, 07 Jul 2009 13:26:55 GMT</pubDate><dc:creator>Mark</dc:creator></item><item><title>RE: Really Simple VBScript problem (Embarassingly Simple)</title><link>http://www.a1vbcode.com/vbforums/Topic27853-6-1.aspx</link><description>I appreciate the novel, but I was looking for something like what you were getting at in the last paragraphs, not a tutorial on how web pages work. Been doing this for a while. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a basic script working that will return certain values based on input when gone through a database query to return an XML reponse for our IVR system. The idea is to send info to the script, such as location ID, and the database will contain information about the facility's hours of operation. The XML response will contain this information, and the IVR will speak to the caller via different menus, depending on the open/closed status of the facility. &lt;/P&gt;&lt;P&gt;This is just a test system, I'm a telephony architect, and the real thing would be constructed by our web team. I just want to see if I can get it working.</description><pubDate>Tue, 07 Jul 2009 09:00:45 GMT</pubDate><dc:creator>Mobius</dc:creator></item><item><title>RE: Really Simple VBScript problem (Embarassingly Simple)</title><link>http://www.a1vbcode.com/vbforums/Topic27853-6-1.aspx</link><description>Your "web page" can't be static, it must live in some sort of Web server.  Then you'd construct the page using CGI, ASP, etc. techniques.&lt;/P&gt;&lt;P&gt;Your code above is not using "regular VBScript" but instead VBScript in the context of the WSH script engine.  To do what you want means something like ASP, where IIS and its ASP subsystem are the script host for VBScript, with different rules.&lt;/P&gt;&lt;P&gt;The server gets the request from the client, wraps up the request info one way or another (depending on the dynamic Web technology and API you are using) and passes it to the "page" which contains script that runs.  This "page" actually emits an HTML response back through the Web server for delivery back to the client.&lt;/P&gt;&lt;P&gt;Things like ASP pages sort of look like HTML with script embedded, but the parts that appear to be HTML are actually parsed and wrapped up as Response.Write calls behind your back, and executed inline with the explicit script of the page.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;pre&gt;&amp;lt;html&amp;gt;&lt;BR&gt;&amp;lt;body&amp;gt;&lt;BR&gt;&lt;SPAN class=highlight_code&gt;&amp;lt;%&lt;BR&gt;Response.Write("Hello World!")&lt;BR&gt;%&amp;gt;&lt;/SPAN&gt;&lt;BR&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;% %&amp;gt; markers surround script to be executed.  Anything outside those markers is considered literal text to be written out.&lt;/P&gt;&lt;P&gt;In ASP you have a Request object passed to your script.  This has properties for things like the QueryString.  Request.QueryString is a collection, built from an expected string syntax of name=value pairs like:&lt;/P&gt;&lt;P&gt;&lt;A href="http://site/something.asp?name=John&amp;amp;age=30"&gt;http://site/something.asp?name=John&amp;amp;age=30&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This gives your ASP page a Request.QueryString collection with two items: name and age with values John and 30.&lt;/P&gt;&lt;P&gt;If you &lt;EM&gt;break the rules&lt;/EM&gt; and want to just grab the unparsed query string you could use Request.ServerVariables("QUERY_STRING") which would return the string value "name=John&amp;amp;age=30" instead.</description><pubDate>Sun, 05 Jul 2009 14:45:12 GMT</pubDate><dc:creator>dilettante</dc:creator></item><item><title>Really Simple VBScript problem (Embarassingly Simple)</title><link>http://www.a1vbcode.com/vbforums/Topic27853-6-1.aspx</link><description>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:&lt;/P&gt;&lt;DIV style="BORDER-RIGHT: #000000 3px solid; PADDING-RIGHT: 25px; BORDER-TOP: #000000 3px solid; PADDING-LEFT: 25px; BACKGROUND-IMAGE: none; PADDING-BOTTOM: 25px; BORDER-LEFT: #000000 3px solid; PADDING-TOP: 25px; BORDER-BOTTOM: #000000 3px solid; BACKGROUND-COLOR: #cccccc"&gt;html&lt;BR&gt;body&lt;BR&gt;script type="text/vbscript"&lt;BR&gt;&lt;FONT color=#0000cc&gt;If&lt;/FONT&gt; WScript.arguments(0) &amp;lt;&amp;gt; "" &lt;FONT color=#0000cc&gt;Then&lt;/FONT&gt;&lt;BR&gt;arg1 = "WScript.arguments(0)"&lt;BR&gt;&lt;FONT color=#0000cc&gt;End&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;If&lt;/FONT&gt;&lt;BR&gt;&amp;#100;ocument.write(arg1)&lt;BR&gt;&amp;#100;ocument.write("Hello.......")&lt;BR&gt;/script&lt;BR&gt;/body&lt;BR&gt;/html&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;P&gt;In this though, I used code that I know works for passing parameters to a locally run VBScript. Is it done the same way?&lt;/P&gt;&lt;P&gt;I just want to be able to do something like this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://site/?SOME_PARAMETER"&gt;http://site/?SOME_PARAMETER&lt;/A&gt;&lt;/P&gt;&lt;P&gt;....and the script would pick up the value of "SOME_PARAMETER".&lt;/P&gt;&lt;P&gt;I know, simple, right? I'm not really a developer anymore so I'm kind of rusty. Any ideas?</description><pubDate>Mon, 29 Jun 2009 16:10:17 GMT</pubDate><dc:creator>Mobius</dc:creator></item></channel></rss>
