Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a form processing page

Status
Not open for further replies.

celieb

Technical User
Jul 26, 2004
5
GB
I am creating a form processing page and want to read the variables in the new ASP page that gets loaded when I run the action.

I have used post as the method and produced the ASP page that does what we want, but we need to access the form data.

Any help much appreciated.

Celie
 
sample code:

form.htm
Code:
<form name="myform" action="mypage.asp" method="post">
<input type="text" name="mytxtbox" value="">
<input type="submit" name="submit" value="submit">
</form>

mypage.asp
Code:
<%
textboxvalue=request.form("mytxtbox")
response.write textboxvalue
%>

-DNG
 
When you write "access the form data" do you mean the form fields like textboxes, checkboxes, textareas, radio buttons, and select dropdowns? If so then your question has already been answered by DNG.

If you have some data that you are really using as "display only" on your form but you want to send it anyway then you can use something like the following to send it along with your other form fields to the processing page:
[tt]<input type='hidden' name='SomeData' value='<%= vSomeData%>'>[/tt]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top