Form post and ASP

I have a form on a page and it submit text from an edit box with the post method. How to post to an asp page and how to retreive parameters in asp page?
fmichaud061597Asked:
Who is Participating?
 
vvkConnect With a Mentor Commented:
You can use standard method "POST". In asp page to retrieve values use Request.Form("field name"), if send as parameter (pagename.asp?param_name=value) use Request.QueyValue("param_name")
0
 
sybeCommented:
example:

page 1, this form is posted:

<form action="page2.asp" method=POST>
<input type-"text" name="myName">
<input type-"text" name="myAddress">
<input type-"submit" name="submitbutton" value="Press to submit">
</form>




page 2 (page2.asp), will display the test which was filled in the textfields of the form:
<%
Response.write Request.Form("myName") & "<br>"
Response.write Request.Form("myAddress") & "<br>"
%>


0
All Courses

From novice to tech pro — start learning today.