Submitted by Anonymous (not verified) on Sat, 07/01/2006 - 00:00
Forums

What is the "QryStr" Function?

Bent Rønne

Sat, 07/01/2006 - 00:00

The "QryStr" takes the value from a parameter parsed along with the URL.

There are (at least) two ways to build the URL in a HTML document:

Passing the variable name and value along the <a href ... tag
use the method= "GET" on the form object.
The following example illustrates both ways in IceBreak ASP code Free-RPG:

  <%/free%>
 <html>
  <h1>Using the "QryStr" function to parse parameters along the URL</h1>
  <form method="get">
   Enter your name, and press enter :
     <input type="text" name="myname">
      </form>
      When I come back to this page my name is: <%= QryStr('myname') %>
      <br>
     <br>
     <br> 

 <a href="ex01QryStr.asp?myname=ABC">This link takes the value "ABC" alo 
  ng the URL back to the application</a>
    </html>
    <% *inlr = *on; %> 

Try the code, Click here