Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2005, 10:56 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!
 
Old March 14th, 2005, 05:29 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi,
find this link
http://www.asp101.com/resources/uploadinfo.asp

surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Fields Terry J Daichendt JSP Basics 2 September 15th, 2008 05:53 PM
copy fields from Form to new form - openargs justabeginner Access VBA 1 February 4th, 2007 01:28 PM
Upload.Form problem barkerl Classic ASP Basics 1 January 22nd, 2007 06:06 AM
Filter form with date fields problem!! chiefouko Access 2 August 14th, 2006 10:15 AM
Getting the submitted fields in a form siraj_java Javascript How-To 0 August 26th, 2003 12:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.