Get the form field values using request object

by Nirmala 2009-08-31 14:20:51

Hi..
Get the posted form field values using request object method in ASP.

<form action="" method="post">
<input type="text" name="txt">
<input type="submit" value="submit">
</form>

Get the text box value using request object method.

<%
Dim pp
pp=Request.Form("txt") //Dont use single quote
Response.Write(pp)
%>
or
<%
Dim pp
pp=Request("txt") //txt is the textbox name
Response.Write(pp)
%>

Tagged in:

1660
like
1
dislike
0
mail
flag

You must LOGIN to add comments