TonyLoco23
03-09-2009, 04:24 PM
I have just started using ASPUpload and all I can say is that for a ready-made solution, it is extremely difficult to use!
I am trying to create a form that asks various questions in option boxes and allows users to submit an image file. Obviously I do not want the image to be submitted to the host until the user has answered all the questions on the form and pressed the last button that says "submit image"
Some of the option boxes need to submit the form.
However when the user clicks on one of these option boxes, the image gets uploaded! This is because I have not worked out how to make the code sample that processes the image (from ASP upload) conditional on whether or not the final button is pressed.
Normally I would use:
if request.form("UpImg") = "Upload New Image" then
*Process and upload the image
end if
But they (ASPUpload) say you have to use:
if upload.form("UpImg") = "Upload New Image" then
*Process and upload the image
end if
But this does not work either, if I put this in before the upload.save method, it stops ALL of the form objects (both the option boxes and the final button) from submitting the form, if I put it in after the upload.save method the image has already been saved anyway so its pointless.
Any ideas how to get around this problem? I thought about putting all my option boxes in a different form on the same page, but I am not sure that I can have forms written within another form??
I am trying to create a form that asks various questions in option boxes and allows users to submit an image file. Obviously I do not want the image to be submitted to the host until the user has answered all the questions on the form and pressed the last button that says "submit image"
Some of the option boxes need to submit the form.
However when the user clicks on one of these option boxes, the image gets uploaded! This is because I have not worked out how to make the code sample that processes the image (from ASP upload) conditional on whether or not the final button is pressed.
Normally I would use:
if request.form("UpImg") = "Upload New Image" then
*Process and upload the image
end if
But they (ASPUpload) say you have to use:
if upload.form("UpImg") = "Upload New Image" then
*Process and upload the image
end if
But this does not work either, if I put this in before the upload.save method, it stops ALL of the form objects (both the option boxes and the final button) from submitting the form, if I put it in after the upload.save method the image has already been saved anyway so its pointless.
Any ideas how to get around this problem? I thought about putting all my option boxes in a different form on the same page, but I am not sure that I can have forms written within another form??