multiple browse files saved on the form under the textbox
Posted on 2006-07-10
My intention is to have a form with one textbox followed by a BROWSE buttton, and everytime the user browses for a file, that file to get saved underneath the textbox on the form. That way the textbox will always remain blank...
So if the user browses for the following document paths: c:/angie/readme.txt, c:/angie/form.txt and c:/angie/document3.txt
He uses the "BROWSE" button to get the first path and then clicks the "ATTACH FILE" button to add them to the form, in hidden input boxes, so that the values get saved on the screen...
<input type = "hidden" name = "doc1"><input type = "hidden" name = "doc2"><input type = "hidden" name = "doc3"> etc...
response.write doc2 etc....
Is this a good way to get the values from the browse textbox called attach1 to display on the screen under the textbox as seen in the diagram below?
|__________________| BROWSE ATTACH FILE
This way, once all the files are chosen, the user can click SUBMIT, and they get saved to the database (that part I know how to do)
but can you help me write code that saves the files's path on the screen? We have no idea how many attachements need to sent through each email, so we have to let them attach as many files as they want...