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!

How to pass a Request Collection

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
Right now I am writing a Multi-Report interface that'll format multiple pages onto a single page so that even netscape users can print out a bunch of reports onto a single page, the problem is that, the normal print routine, print4.asp will take upto 9 URL#, with this multiple report submission, could go beyound 9 URLS (about 3 URLS per selection for a top, contents, bottom fames retreval) I would like to know how to pass over a dynamic number of URLs like in a collection, I'll also pass over a trigger parameter so I wont have to change all the regular print routines as well (this would require changing 3 other ASP just to make it compatible with the new print page, and my superior would like to change as little as possible) I feel that approaching this method would be best for size and speed, rather than a URL1 thru URL9 only(wonder why they did that in the first place) Any Ideas? <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.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>
 
oh also, this is not a form submission, its directly appeneded to the URL with those ? and & also using URLEncode to make sure the URL passes over properly ( I would have done it by form, but they already had it setup inline submission) <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.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>
 
Karl,<br><br>I'm not following most of what you said but maybe this is on track:<br><br>The browser and server will create the collection for you if you just name the variables the same in the querystring, i.e.:<br><br>href=&quot;myapp.asp?myurls=abc.asp&myurls=mno.asp&myurls=xyz.asp&quot;<br><br>Now on the server Request(&quot;myurls&quot;) is a collection.<br><br>Hope this helps<br>-pete
 
I see, so just by using the same name I Can just do a for Loop on the Reqest collection of that variable, Thats pretty much what I Was after, I wasnt sureif they're was anything special about how to put it into the URL string, will doing for each thing in Request(&quot;myurls&quot;).collection work? <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top