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

how to carry the value from one form to another?

Status
Not open for further replies.

longmatch

Programmer
Nov 1, 2001
406
I am designing a form for repetitve use. Sometims the information one form is the same as the next one. I would like to carry this kind information over, saving a lot unnecessary typing. How can I do it?

Haijun
 
Hi Haijun,

you can use the following code for your problem

<form name=SampleForm action='sample.asp' method=post>
<input type=text name=EmpName value='<%=Request.Form(&quot;EmpName&quot;)%>'>
<input type=text name=EmpAge value='=Request.Form(&quot;EmpAge&quot;)'>
<input type=text name=EmpSalary value='=Request.Form(&quot;EmpSalary&quot;)'>
</form>

Each for value is set to that particular form element when it is submitted.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top