Upload and Form fields problem
Hi.
I had an HTML form with regular fields: <FORM method="post" action="action.asp">
Now I need to add an upload field: <INPUT type="File" name="File1">
I changed the form to <FORM method="post" encType="multipart/form-data" action="ToFileSystem.asp"> after which I cannot access the HTML fields on the action page.
I found out on the web about AspUpload object which is a workaround to get both fields and files uploads within one form but for me installing the object on the server is not an option. After a little more research I found another object: Free ASP Upload which doesn't require any installed components or dll to work. This helps me to do the upload and get other form fields by doing this:
Set Upload = Server.CreateObject("Persits.Upload")
strFieldName = Upload.Form("fieldname")
But the problem now is that I can't use the Upload object to extract a collection from a form field. Something that can be used in a loop.
For example if I have 8 checkboxes, how can i find out which ones
are checked from the collection of these checkboxes?
Something like this:
For each Field in objUpload.Fields ... ...
Is there a solution to my problem?
Thanks a lot!
|