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

Forms get and post methods

Interact with a user in a form that uses the "get" method

<html>
<body>
<form action="demo_reqquery.asp" method="get">
Your name: <input type="text" name="fname" size="20">
<input type="submit" value="Submit">
</form>
<%
dim fname
fname=Request.QueryString("fname")
If fname<>"" Then
Response.Write("Hello " & fname & "!<br />")
Response.Write("How are you today?")
End If
%>

</body>
</html>
 
Your name:

Interact with a user in a form that uses the "post" method

<html>
<body>
<form action="demo_simpleform.asp" method="post">
Your name: <input type="text" name="fname" size="20">
<input type="submit" value="Submit">
</form>
<%
dim fname
fname=Request.Form("fname")
If fname<>"" Then
Response.Write("Hello " & fname & "!<br />")
Response.Write("How are you today?")
End If
%>

</body>
</html>
 
Your name:

 Radio button

<html>
<%
dim cars
cars=Request.Form("cars")
%>
<body>
<form action="dem
o_radiob.asp" method="post">
<p>Please select your favorite car:</p>

<input type="radio" name="cars"
<%if cars="Volvo" then Response.Write("checked")%>
value="Volvo">Volvo</input>
<br />
<input type="radio" name="cars"
<%if cars="Saab" then Response.Write("checked")%>
value="Saab">Saab</input>
<br />
<input type="radio" name="cars"
<%if cars="BMW" then Response.Write("checked")%>
value="BMW">BMW</input>
<br /><br />
<input type="submit" value="Submit" />
</form>
<%
if cars<>"" then
Response.Write("<p>Your favorite car is: " & cars & "</p>")
end if
%>

</body>
</html>
 

Please select your favorite car:

Volvo
Saab
BMW

 

Our Service

      Mumbaiarticle   Blackmagik   

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

w