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

isapi/cgi contentfields and queryfields

Status
Not open for further replies.

Tracey

Programmer
Oct 16, 2000
690
NZ
Hi

Im looking for a shortcut, is it possible to pass all contentfields across at once, eg in a redirect, rather than stating each var and its value?
eg
instead of doing this:
Code:
                Response.SendRedirect(Format('/cgi-bin/eTrace.exe/newlease?ID=%d&Error=3&from=newlease' +
                    '&clientid=%s&lease=%s&start=%s&payer=%s&expiry=%s&delivery=%s&hours=%s',
                    [iID, Request.ContentFields.Values['clientid'],
                    Request.ContentFields.Values['lease'],
                        Request.ContentFields.Values['start'],
                        Request.ContentFields.Values['payer'],
                        Request.ContentFields.Values['expiry'],
                        Request.ContentFields.Values['delivery'],
                        Request.ContentFields.Values['hours']]))

can i do something like:

Code:
Response.SendRedirect('/cgi-bin/eTrace.exe/newlease?' +  Request.Contentfields[all])

Tracey
Remember... True happiness is not getting what you want...

Its wanting what you have got!
 
Hi Tracey,

Just use this:

Request.ContentFields.Text

Cheers,

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top