Click to See Complete Forum and Search --> : Form with photo upload
jonsuey
05-07-2005, 08:36 PM
Hi, hope someone can help.
I need to have a field in a simple form that would allow someone to upload a photo/photos and then send the photo along with the other information from the form to an email address.
Is this something simple? I hope!
Thanks,
Sue
ray326
05-08-2005, 12:16 PM
It's not too tough if you have server side programming experience and access to the various resources like the mail server interface.
jonsuey
05-09-2005, 08:24 PM
I appreciate the reply...but that doesn't help much...guess I should have worded by question a little different. :confused:
Is there anyone with a little more "specifics" on how to upload a photo in a form field that would then submit the form info and photo to an email address?
Thank You
HaganeNoKokoro
05-09-2005, 08:56 PM
To be more specific, you must have a server-side language (ASP (.NET), PHP, Perl, Java/JSP) and a mail server that the server-side language may use.
The html for your form will be somthing along the lines of<form method="post" enctype="multipart/form-data" action="uploadpage.???">
<div>File to upload: <input type="file" name="theFile"></div>
<div><input type="submit"></div>
</form>The code for the upload page will depend on which server-side language you have available.
ray326
05-09-2005, 11:21 PM
Assuming you know what the file upload form mark up looks like, there is no way to be more specific unless YOU can be more specific about your server side capabilities. If you're asking how I would prefer to do it then I would prefer to do it in Java using the Struts framework to handle most of the code. Another almost turn key capable environment would be PHP with extensions. In either case you still have to have an SMTP server available to send your mail.