Slattery, Tim - BLS wrote:

You are a life saver. This is so cool. However, the "browse" button in this case is not a browse button but, rather, a submit button. Can you leave this as it is and also give us a submit button? Thanks a ton. This should show my partners in this crime that a submit is definitely possible.



I don't understand what you're asking. True, in the form in the previous
letter there's no "submit" button, therefore no way to submit it. So just
add an <input type="submit"...> element. The user sees the image, when he
clicks it, the Javascript causes the <input type="file"...> element to
operate, and the user selects a file. After the file is selected the
Javascript copies the file name to the visible <input type="file"...>
element. When the form is submitted, the file is sent up.


Come to think of it, you'll need to add enctype="multipart/form-data" to the
"<form..." element. And, of course, you'll need something on the server end
that can handle what's coming up. Struts has what's necessary.


--
Tim Slattery
[EMAIL PROTECTED]



Oops, in the previous submission, Tim, I reversed the results with your form versus a standard from. Thanks again for your help. You have given me hope where I thought none might be available.


Michael McGrady


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to