KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

Using QueryString

In this example we will request 3 items of information. The users first name, last name and password. We will then place these items in a query string and display on the next page.
Note that Firstname and Lastname will be saved in the same Querystring item. firstname in position 1 and Lastname in position 2.

<html>
<head>
<title> Request QueryString</title>
</head>
<body>
<p>
<form name=QueryString Action="RequestQuery.asp" method="get">
Type your first name: <Input type=text name="name">
<br>
Type your last name <input type=text name="name">
<br>
<!--
Not that both firstname and Lastname are save in the same item called "name".
//-->

Type your password: <input type=text name="pass>
<br>
<input type=submit value=login>
</form>
<br>
<Hr>
<o>
The information received from the QueryString object was:
<p>
Name= <%=Request.QueryString("name")%>
<br>
Passwo= <%=Request.QueryString("pass")%>
<br>
The 'name' property's count is <%=Request.QueryString("name").Count%>

<br>
<%
if not isempty (Request.QueryString("Name")) then
%>
<!--
First ensure that name is not empty to prevent a runtime error.
//-->

First name =<%=REquest.QuerString("Name")(1)%>
<br>
Last name =<%=REquest.QuerString("Name")(2)%>

<!--
Now access first and lst names for position 1 and 2 in Name)
//-->

<%end if%>
<p>
<%=Request.QueryString%>
<br>
<%=Reqest.ServerVariables("QUERY_STRING")%>
<br>
</body>
</html>

ASP tutorial
What is ASP
Install IIS
VBScript or JScript
ClientSide vs ServerSide scripting
ASP execution order
Dealing with Form
More Form example
Variable &Variant
String
Local variable
Global variable
Arrays
Use if_then_else
Use Select Case
For_Next loop
Do_while loop
Subroutine vs Function
Request Object
QueryString
Count Keyword
Using QueryString
Application, Method, Events
Create Virtual Directory
Save array in Application
Session, Method, Events
Using Cookie
Server Object
Ad Rotator
Content Linker
Browser
Dictionary object
Filesystemobject Object

 

 

 

 

Best books about ASP & ASP.Net from Amazon
Beginning Dynamic Websites : with ASP.NET Web Matrix (Programmer to Programmer) (Paperback) Build Your Own ASP.NET Website Using C# & VB.NET (Build Your Own) (Paperback) Professional Active Server Pages 3.0 (Programmer to Programmer) (Paperback) ASP.NET Cookbook (Paperback) ASP.NET Kick Start (Paperback)

 

Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © kidslovepc.com All rights reserved(new). Privacy|Copyright
designed by info@kidslovepc.com

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer