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.

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

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

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)%>
Last name =<%=REquest.QuerString("Name")(2)%>

Now access first and lst names for position 1 and 2 in Name)

<%end if%>

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
Local variable
Global variable
Use if_then_else
Use Select Case
For_Next loop
Do_while loop
Subroutine vs Function
Request Object
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
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 © All rights reserved(new). Privacy|Copyright
designed by

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