View Full Version : Attaching a document to a form
08-10-2004, 07:15 PM
Question: I already have a form that is written in ASP. I also want this form to let the user attach a document and when he clicks submit it would send the information he typed into the form with the addition of the document that he attached. Could this be accomplished and how?
08-11-2004, 03:32 AM
Try this pure vbscript file upload script.
08-11-2004, 09:29 PM
So how would I incorporate this into a already existing form?
08-12-2004, 01:58 AM
There is a sample page (included in that zip) that demonstrates how to use the upload script. Just use it as a guide. Also read the readme file to know what methods and properties are available and their description.
08-12-2004, 10:04 PM
keep in mind when using the asp uploader that you must add this to the <form> tag ENCTYPE="multipart/form-data" then in the code that handles the form change any Request.Form("foobar") to Uploader.Form("foobar")
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.