homersim
asked on
Online Form - Ataching Images
Hi,
I have a standard contact form on my webpage which allows input such as name, address, email. When the user presses SUBMIT these details are sent to my email address.
However I would like to add in functionality which allows the users to browse to image files on their Hard Disk and send them to my email address along with the other information. This would work much like the "attatchment" feature in hotmail which lets you browse to a file and attach it to the email.
How would I do this?
Thanks,
Neil
I have a standard contact form on my webpage which allows input such as name, address, email. When the user presses SUBMIT these details are sent to my email address.
However I would like to add in functionality which allows the users to browse to image files on their Hard Disk and send them to my email address along with the other information. This would work much like the "attatchment" feature in hotmail which lets you browse to a file and attach it to the email.
How would I do this?
Thanks,
Neil
<FORM METHOD="POST" ENCTYPE="multipart/form-da ta">
<INPUT NAME="uploadfile" TYPE="file" VALUE="">
</FORM>
<INPUT NAME="uploadfile" TYPE="file" VALUE="">
</FORM>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> ..user presses SUBMIT these details are sent to my email address.
oops, missed that.
Therfore <a href=mailto: ...> is used, it spawns a application specified by the user (respectively his browser and/or OS) which is responsible for browsing the local filesystem.
Probably a Java-applet can do what you want
oops, missed that.
Therfore <a href=mailto: ...> is used, it spawns a application specified by the user (respectively his browser and/or OS) which is responsible for browsing the local filesystem.
Probably a Java-applet can do what you want
Problem with <a href=mailto... is that it just does invokes the mailer and does not interact with the form, sadly.
I do agree that a Java Applet can do it but it would be easier and more general since at this point we are writing code, to do it server side. Remember that a lot of people disable Java and worse, windows XP comes without Java support at all.
I do agree that a Java Applet can do it but it would be easier and more general since at this point we are writing code, to do it server side. Remember that a lot of people disable Java and worse, windows XP comes without Java support at all.
homersim,
Did you get the solution you were looking for?
What solution, if any, did you use?
Please let us know.
Thanks,
Did you get the solution you were looking for?
What solution, if any, did you use?
Please let us know.
Thanks,
homersim,
Did you get the solution you were looking for??
What solution, if any, did you use??
Pl. let us know.
NOTE: if you have found a solution on your own or if this question has become obsolete, please delete it and free up your points.
Thanks,
Did you get the solution you were looking for??
What solution, if any, did you use??
Pl. let us know.
NOTE: if you have found a solution on your own or if this question has become obsolete, please delete it and free up your points.
Thanks,
homersim,
Did you get the solution you were looking for??
What solution, if any, did you use??
Pl. let us know.
NOTE: if you have found a solution on your own or if this question has become obsolete, please delete
it and free up your points.
Thanks,
Did you get the solution you were looking for??
What solution, if any, did you use??
Pl. let us know.
NOTE: if you have found a solution on your own or if this question has become obsolete, please delete
it and free up your points.
Thanks,
Last login was August; apparently abandoned. Proposed answer was not rejected, assume it served and closing.
Moondancer
Community Support Moderator @ Experts Exchange
Moondancer
Community Support Moderator @ Experts Exchange
however, to get optimal results without a lot of code, you will need to be sure and have the module MIME::Lite installed on your server
if you have that module installed, I have a simple solution.