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

Need help passing ID number to multiple pages

Status
Not open for further replies.

donniea21

MIS
Feb 16, 2001
75
US
I am trying to insert a new record. The problem is that ther are like 4 pages of fields that need to be filled in. How can I insert the info from page 1, pass the id number, and then do pages 2-4 as a record update(or keep going throug all 4 pages as 1 insert)?
 
A couple of options to consider here

1. You could use a hidden field to pass the id number using a hidden field like so:
<input type=&quot;hidden&quot; name=&quot;idno&quot; value=&quot;<%youridnumber%>&quot;>

2. You could write the idno to a session variable in the asp code like so&quot;
<%Session(&quot;idno&quot;) = &quot;youridnumber&quot;%>
and then when you need to call it on subsequent pages simply use
<%Response.Write Session(&quot;idno&quot;)%>
or whatever you need to do with it.

My personal preference is to use hidden fields as it reduces processing by the server but if your site has a relatively small number of users session object should be ok.

Hope this helps.

Justin X-)


&quot;Creativity is the ability to introduce order into the randomness of nature.&quot; Eric Hoffer

Visit me at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top