Finally

July 26, 2005 by Auz Clement
After looking over all of the solutions for this problem this is the only complete one that actually works!  The other pages need to be updated or linked to this.  Thanks!

Cannot pass session variable using Pure ASP Upload

January 2, 2008 by bill charrette

I’ve read all the replies for this article and still cannot pass a Session variable from one page to another when applying the Pure File Upload

I am using Dreamweaver: 8.02, Pure ASP Upload 3, ASP VBScript

I understand that after you use the Pure ASP Upload you can't use the Request.Form collection.  Therefore I am using the UploadFormRequest(..) instead.

The following code is placed on the upload page (per your instructions):

<%

If (CStr(Request.QueryString("GP_upload")) <> "") ThenNew_redirectPage = "newsletter_added.asp" 'Set the new redirect page

'Set our session, cookie or other variables from the form submissions

Session("sessNewsletterFrom") = UploadFormRequest("NewsletterFrom")
Session("sessNewsletterPrivacyType") = UploadFormRequest("NewsletterPrivacyType")
Session("sessNewsletterSubject") = UploadFormRequest("NewsletterSubject")
Session("sessNewsletterMessage") = UploadFormRequest("NewsletterMessage")
Session("sessNewsletterAttachment1") = UploadFormRequest("NewsletterAttachment1")
Session("sessNewsletterAttachment2") = UploadFormRequest("NewsletterAttachment2")
Session("sessNewsletterAttachment3") = UploadFormRequest("NewsletterAttachment3")

'Redirect the page if we have set the above variable

If New_redirectPage <> "" Then
Response.Redirect(New_redirectPage)
End If

End If

%>

 

 

The following code is placed on the redirect page (per your instructions):


<%

'These are used to check for correct values

'Remove or comment then out after checking!

Response.Write "NewsletterFrom: " & Session("NewsletterFrom") & "<P>"
Response.Write "NewsletterSubject: " & Session("NewsletterSubject") & "<P>"
Response.Write "NewsletterPrivacyType: " & Session("NewsletterPrivacyType") & "<P>"
Response.Write "NewsletterMessage: " & Session("NewsletterMessage") & "<P>"
Response.Write "NewsletterAttachment1: " & Session("NewsletterAttachment1") & "<P>"
Response.Write "NewsletterAttachment2: " & Session("NewsletterAttachment2") & "<P>"
Response.Write "NewsletterAttachment3: " & Session("NewsletterAttachment3") & "<P>"

Response.End

%>

 


Any help would be greatly appreciated

Thanks Bill