I have been searching for a while now (possibly not hard enough) and can't seem to find what I'm looking for.
I would like to know how to allow users to attach images to an email on my contact page. This would be so that users could "Submit Photos" to me (the webmaster) so that I can post them on the website.
So, basically I know the HTML portion of it (or the basics of it)
<form name="photoSubmit" action="../scripts/photosubmit.php">
Your Name: <input name="name" type="text" size="30"></input>
Your Email: <input name="email" type="text" size="30"></input>
Photo Title: <input name="ptitle" type="text" size="30"></input>
Photo Description: <textarea name="pdescrip" type="text" rows="20" size="50"></textarea>
Photo Copyright: <input name="copyright" type="text" onClick="value=''" value="This Photo is Copyright 2004 SOMEONE"></input>
<input type="Submit" name="Send" label="Submit the Photos"></input>
<input type="Reset" name="Reset" label="Reset the Form"></input>
</form>
Now, the PHP will be the regular mail script, with the normal stripping of slashes, and sending it to a pre-determined email address. The only part I don't get is creating the "Attachment:" input selection, and how to add the PHP to it to allow the submission of the image.
Any and all help would be appreciated.
~Brett
check this out
http://www.omidsoft.com/tutorial/formmail_attachment.html
Michael