Computer Keywords    Meta tag Generator  Software Whois Web Programming India Article Write text using ASP | Submit Articles |  

 

Free Newsletter

Sat, May 17, 2008

Our Service

Custom Software
Software Process
Web Development
Review Our Site
Our Developments
ASP Tutorials
HTML/ DHTML Tutorials
Computer keywords
Whois

Link Exchange

Computer

Business
Marketing
Misc General
Website

Articles

Automobile articles
Business articles
Computers articles
Entertainment articles
Education articles
Health & Food articles
Law/Legal articles
Marketing articles
General articles
Software articles
Sports articles
Science \Technology articles
Travel /Tourism articles
Web articles

ASP Tutorials

Request Object

Send extra information within a link

<html>
<body>

<a href="simplequerystring_demo.asp?mode=display">

Example</a>

<%
Response.Write(Request.QueryString)
%>

</body>
</html>

Example

How to use information from forms

<html>
<body>

<%
If Request.QueryString<>"" Then
If Request.QueryString("name")<>", " Then
name1=Request.QueryString("name")(1)
name2=Request.QueryString("name")(2)
end if
end if
%>

<form action="demo_reqquery2.asp" method="get">
First name:
<input type="text" name="name" value="<%=name1%>">
<br>
Last name:
<input type="text" name="name" value="<%=name2%>">
<br>
<input type="submit" value="Submit">
</form>
<hr>
<%
If Request.QueryString<>"" Then
Response.Write("<p>")
Response.Write("The information received from the form was:")
Response.Write("</p><p>")
Response.Write("name=" & Request.QueryString("name"))
Response.Write("</p><p>")
Response.Write("The name property's count is: ")
Response.Write(Request.QueryString("name").Count)
Response.Write("</p><p>")
Response.Write("First name=" & name1)
Response.Write("</p><p>")
Response.Write("Last name=" & name2)
Response.Write("</p>")
end if
%>

</body>
</html>

 

First name:
Last name:

 
 
<html>
<body>
<%
fruits=Request.Form("fruits")
%>

<form action="demo_checkboxes.asp" method="post">
<p>Which of these fruits do you prefer:</p>
<input type="checkbox" name="fruits" value="Apples"
<%if instr(fruits,"Apple") then Response.Write("checked")%>>
Apple
<br>
<input type="checkbox" name="fruits" value="Oranges"
<%if instr(fruits,"Oranges") then Response.Write("checked")%>>
Orange
<br>
<input type="checkbox" name="fruits" value="Bananas"
<%if instr(fruits,"Banana") then Response.Write("checked")%>>
Banana
<br>
<input type="submit" value="Submit">
</form>
<%
if fruits<>"" then%>

<p>You like: <%Response.Write(fruits)%></p>
<%end if
%>

</body>
</html>

 

Which of these fruits do you prefer:

Apple
Orange
Banana


 

 
<html>
<body>
<p>
<b>You are browsing this site with:</b>
<%Response.Write(Request.ServerVariables("http_user_agent"))%>
</p>
<p>
<b>Your IP address is:</b>
<%Response.Write(Request.ServerVariables("remote_addr"))%>
</p>
<p>
<b>The DNS lookup of the IP address is:</b>
<%Response.Write(Request.ServerVariables("remote_host"))%>
</p>
<p>
<b>The method used to call the page:</b>
<%Response.Write(Request.ServerVariables("request_method"))%>
</p>
<p>
<b>The server's domain name:</b>
<%Response.Write(Request.ServerVariables("server_name"))%>
</p>
<p>
<b>The server's port:</b>
<%Response.Write(Request.ServerVariables("server_port"))%>
</p>
<p>
<b>The server's software:</b>
<%Response.Write(Request.ServerVariables("server_software"))%>
</p>

</body>
</html>
 

You are browsing this site with:

Your IP address is:

The DNS lookup of the IP address is:

The method used to call the page:

The server's domain name:

The server's port:

The server's software:
 

List all servervariables you can ask for

<html>
<body>

<p>
All possible server variables:
</p>
<%
For Each Item in Request.ServerVariables
Response.Write(Item & "<br />")
Next
%>

</body>
</html>
 

All possible server variables:

ALL_HTTP
ALL_RAW
APPL_MD_PATH
APPL_PHYSICAL_PATH
AUTH_PASSWORD
AUTH_TYPE
AUTH_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH
CONTENT_TYPE
GATEWAY_INTERFACE
HTTPS
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID
INSTANCE_META_PATH
LOCAL_ADDR
LOGON_USER
PATH_INFO
PATH_TRANSLATED
QUERY_STRING
REMOTE_ADDR
REMOTE_HOST
REMOTE_USER
REQUEST_METHOD
SCRIPT_NAME
SERVER_NAME
SERVER_PORT
SERVER_PORT_SECURE
SERVER_PROTOCOL
SERVER_SOFTWARE
URL
HTTP_CONNECTION
HTTP_ACCEPT
HTTP_ACCEPT_LANGUAGE
HTTP_COOKIE
HTTP_HOST
HTTP_REFERER
HTTP_USER_AGENT
 

 

 

Our Service

      Mumbaiarticle   Blackmagik   

 Mantravidya | Divyayoga shop | How to remove blackmagik | Infoarticle | India Article | Dhyansanjivani | Free horoscope | Ghost Hunter | RishiZone |

w