Hi,
I am having a problem using the request object to read in variables on the same page as I am using upl.form later on in the page. this is a piece of the code :
b_Slide_Active = request("b_Slide_Active"
Set upl = Server.CreateObject("SoftArtisans.FileUp"
if b_Slide_Active = "on" or b_Slide_Active = "True" then
s_Relative_Path = "/documents/"
upl.Path = Server.MapPath(s_Relative_Path) & "\"
upl.form("s_Slide_Name"
.save
i_Position = inStrRev(upl.UserFilename,"\",-1,1)
i_Length = len(upl.UserFilename)
i_cut = i_length - i_Position
s_Slide_Name = right(upl.UserFilename,i_Cut)
s_Slide_Name = replace(s_slide_Name,",","",1,-1,1)
b_Slide_Active = 1
else
b_Slide_Active = 0
s_Slide_Name = null
end if
It doesn't seem to like using the request object on this page and will not read in the b_Slide_Active variable. However, in some instances a file will not be uploaded and therefore I can not use the upl.form object to read the variable either. Can anyone offer any help? Sorry if my explanation is not very clear, I'm very new to all this.
Thanks very much for your help,
Hayley
I am having a problem using the request object to read in variables on the same page as I am using upl.form later on in the page. this is a piece of the code :
b_Slide_Active = request("b_Slide_Active"
Set upl = Server.CreateObject("SoftArtisans.FileUp"
if b_Slide_Active = "on" or b_Slide_Active = "True" then
s_Relative_Path = "/documents/"
upl.Path = Server.MapPath(s_Relative_Path) & "\"
upl.form("s_Slide_Name"
i_Position = inStrRev(upl.UserFilename,"\",-1,1)
i_Length = len(upl.UserFilename)
i_cut = i_length - i_Position
s_Slide_Name = right(upl.UserFilename,i_Cut)
s_Slide_Name = replace(s_slide_Name,",","",1,-1,1)
b_Slide_Active = 1
else
b_Slide_Active = 0
s_Slide_Name = null
end if
It doesn't seem to like using the request object on this page and will not read in the b_Slide_Active variable. However, in some instances a file will not be uploaded and therefore I can not use the upl.form object to read the variable either. Can anyone offer any help? Sorry if my explanation is not very clear, I'm very new to all this.
Thanks very much for your help,
Hayley