Click to See Complete Forum and Search --> : attach picture in online form.


alfinatr
09-10-2003, 02:29 PM
Hi guys, have a puzzle for you. I am working on a web site for pizza delivery drivers within my county of residence. One of the features on that site is a "Cute Pizza Driver of the Month" I have recently set up a form to allow users to submit nominations for the cutest delivery driver. I think it would be awesome if users could send me a picture of the "nominee" exactly like how you can attach a picture in a web mail message and send it to your friends. Here's what I've got so far:

A completed form with the basics; name, email address...etc.

An image placeholder.

A text box with a browse button attached to it, the HTML code looks like this:
input type=file name="name of object"
which thanks to a free javascript code snippet(javascriptsource.com) allows the user to browse their own hard drive, get a picture and display it on the form itself using the image placeholder.

Ability to submit the form using a CGI script to my email address.

Any ideas on how to implement this would be greatly apprecaited.

DaveSW
09-10-2003, 02:36 PM
does your server support php? if so, try http://phpmailer.sourceforge.net/

Other than that use the forum search option to search for 'attach file form'

Hope this helps

Dave