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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing text from one page to another

Status
Not open for further replies.

cwolgamott

Programmer
May 29, 2002
69
US
Hello. :) I am creating some asp pages, and I would like to pass some text information from one page to another. I am able to pass the information that resides in text boxes that the user types in. However, I am unable to pass the text that I put on the form that the user is unable to change. (In a label, if you will) I am not sure how to go about passing these values as well as the ones that the user types in. I would greatly appreciate any suggestions. :) Thank you so much. :)
 
You can specify a hidden field for each label you want to send to the next page:

<form ....

....
<% for i = 0 to ubound(arrData,2)%>
<span><%=arrData(0,i)%></span>
<input type=hidden name=&quot;Label<%=i%>&quot; value=&quot;<%=arrData(0,i)%>&quot;>
<% next %>

...
</form>

now your labels will be submitted along with the form, hidden fields is the key.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top