jeffery harris schrieb:
I need to create a php form and mail it to a recipient (that I can do). My
question is how do I create an area for a file (.doc, or .pdf) to be
attached emailed along with other form data as well?
-Jeff
Hi Jeffery,
you need to upload the File with the Form inputfield
<form action="input_file.htm" method="post" enctype="multipart/form-data">
<input name="Datei" type="file" size="50" maxlength="100000"
accept="text/*">
When the upload is ready, use is_uploaded_file() function to check and
others to validate the File (important) then move the file with move_
uploaded_ file() to the Directory where you want or attach to the mail
you want.
Kind Regards
Carlos Medina
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php