Solved

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

Posted on 2004-08-09
4
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

690 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