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!

Transfering data in Form Fields to a new window

Status
Not open for further replies.

FutileBorg

Programmer
Nov 5, 2000
2
US
Does anyone know how to transfer data from Form Fields I have on a page to another page created when the user finishes entering data? The new page can have the same exact fields, I just need a way to transfer the values to the new page.

Thanks in advance,
Ilya
 
Hi,

consider a form with a single text field

<form name=frm1>
<input type=text name=txt1>
</form>

In the second form (assuming that u are posting from the first form to the second form), you can get the value in txt1 using
request.form (&quot;txt1&quot;)

Additionally, you can have the value in a hidden field as follows:

<form name=frm1>
<input type=hidden name=txt1 value=&quot;<%=request.form
(&quot;txt1&quot;)%>&quot;>
</form>

Mike

 
That would work for transfering data between forms on one page, but how can I transfer data between forms that are on different pages?
 
You got from a form in one page to another on a different page by posting..right???
 
<form name=&quot;frm1&quot; method=&quot;post&quot; action=&quot;page2.asp&quot;>
directs the the form to post form data to page2.asp.

Wushutwist


Sun Certified Java 2 Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top