|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Greetings everyone!
I'm using 3 asp/VBscripts to upload files to server (via html form -multipart/form-data). ------------------------------- <H2>To File System</H2> <FORM method="post" encType="multipart/form-data" action="ToFileSystem.asp"> <INPUT type="File" name="File1"> <INPUT type="hidden" name="someName" value="someValue"> <INPUT type="Submit" value="Upload"> </FORM> ------------------------------- My question is: how do I rerieve the additional "hidden" form fields in the ToFileSystem.asp? Specificly, I'm using the script written by Lewis Moten availabel at: http://www.pscode.com/vb/scripts/Sh...d=7361&lngWId=4 Thank you in advance! AWI_11 |
|
#2
|
|||
|
|||
|
request.form("someName")
|
|
#3
|
|||
|
|||
|
The request.form() method Does not work in a encType="multipart/form-data" form type.
There is a special format to retrieve the field data using Lewis Moten's class. Thanks though! AWI |
|
#4
|
|||
|
|||
|
ahhh, cool. I never knew that. I guess that makes sense, to securely pass the hidden values. haha, yea I just did a sniff and the hidden values were all scrambled. You learn something knew everyday....so you found an answer?
|
|
#5
|
|||
|
|||
|
Yes, you cannot use Request.Form(). You will see an error when you use it along with BinaryRead.
Getting form values is implementation specific. I found this in the questions and comments section of the url you gave. objUpload("(NameOfHiddenField)") .value You can find one at http://www.pstruh.cz/help/scptutl/upload.asp they have their own way of doing it. |
|
#6
|
|||
|
|||
|
aspman,
Thank you for responding. Yes, I figured it out early this morning. That is the way to retrieve it. Plus, this method needs to be placed before closing the object (that was another mistake i made). This was a great script...pure asp for uploading files, no components required. Thanks again AWI |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > ASP to upload files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|