Forums

ASP

This topic is locked

Requesting form values after post

Posted 22 Aug 2006 05:50:47
1
has voted
22 Aug 2006 05:50:47 Avram Grossman posted:
I found the solution...see end of post...

In a classic post back the same web page, I use a standard Request("file" query to get the name of the file just uploaded (and other form variables).

However, since were posting the form using enctype="multipart/form-data" , I can't use the standard Request() after the <input type="file"...> button is pressed.

(I am getting a good and fast upload of the selected image to the imageupload directory...cool).

In the past I've used a trick...

On Error Resume Next
sButton = pau.UploadRequest("selectpic"
If Err Then
response.write "First Time<br>"
Else
sButton = pau.UploadRequest("selectpic"
response.write("Uploaded Pic#: " & sButton
End If

I also tried UploadRequest("selectpic" and get error "Wrong number of arguments or invalid property assignment"

How can I pick up the other form values after posting back from an upload?

Thanks.

I don't give up. I think I found a solution:
Don't use On Error....
and use..

If UploadFormRequest("MakePrimaryButton" = sMakePrimaryButton Then
bMakePrimaryButton = True
End If

...Not UploadRequest(....)

<font color=green></font id=green>

Edited by - enovative on 22 Aug 2006 06:09:57

Reply to this topic