Solved

PHP help needed with adding a feature where a user can upload files/images

Posted on 2004-08-09
4
223 Views
Last Modified: 2010-04-07
Hi, I have 2 q's for you guys.
1)I am creating a form using PHP. I have done the inital part where I have added text, some input options all that goes to my email address. But now I want to add a feature where a user can upload a file or image. I am new to PHP and have looked around and asked people but all in vain. I hope someone out there will be able to help me. If you want to check out my .php, please ask me.
2)the mail() option allows me to add only 5 parameters to it that will goto my email addr: $mail_to, $subject, $text, $menu, $mail_headers. Is there any way I can increase the number of parameters that are sent to my email addr within the same mail and not seperate emails.

The second question is not that important as the first. So if anyone has any idea about the first question, please reply

Thanks

Regards
rskurane
0
Comment
Question by:rskurane
4 Comments
 
LVL 33

Accepted Solution

by:
humeniuk earned 250 total points
ID: 11756469
You can find 62 file upload scripts at http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html.  Some are simpler and more basic, others boast more features but are more complicated.  Two that I have used (both of which I found at HotScripts) and have found to be effective are:

Simple Upload PHP Script (at http://www.tailoredweb.com/downloads.php) - basic, but effective

and

PHP Advanced Transfer Manager (at http://phpatm.kc-it.com/index.html) - more full-featured

(A midrange option would be File Upload Manager at http://webdev.mtnpeak.net/index.php?pg=php - it looks good, but I haven't used it myself).
0
 
LVL 2

Assisted Solution

by:R-U-Bn
R-U-Bn earned 250 total points
ID: 12004735
2)
The most options that you want to give to an e-mail are given through the headers, the variable $mail_headers you mention (which are quite a few options already)

example headers :
MIME-Version: 1.0\r\n
Content-type: text/html; charset=iso-8859-1\r\n
From: Birthday Reminder <birthday@example.com>\r\n
Cc: birthdayarchive@example.com\r\n
Bcc: birthdaycheck@example.com\r\n
Reply-To: webmaster@$SERVER_NAME\r\n
X-Priority: 3\n
Return-Path: <mail@server.com>\r\n

("X-Mailer: PHP/" . phpversion())


If this doesn't help, you will have to get other php modules (or create one yourself) that accesses smtp with more functions, though I think that with the standard smtp server, everything is said in the headers (chack on the internet for headers, there are quite a few which allow quite alot.).  Don't forget, creating your own will slow down things if you do it through script (php itself) in stead of precompiled modules.

0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question