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

Can use pass an array between ASP pages?

Status
Not open for further replies.

BigM

Programmer
Aug 30, 2000
39
GB
Hi

I am wanting to populate an array in an asp page then on submitting the form pass the array to the page which processes the form as details in ACTION=otherform.asp

Can this be done? [sig][/sig]
 
well with a form, a form can have an array to one name, heres an example, when I pass multiple values using the same name for the form content.

[tt]
if not ISEmpty(Request("URLs")) then
for each itm in Request("URLs")
...itm will be the string of each item
next
end if
[/tt]

another way you could do it, if your ASP are all on the same server, you could session off an actual array

set Session("MyArray") = TheArray

to get back in new page
Set ThePageArray = Session("MyArray")
(it would be a good idea to make sure it's not IsEmpty())

that way on the new page, you can grab it back, using that kind of session method helps when using ActiveX dlls, and you dont want to close the DLL until the user , for example logs off.

Hope that helps. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top