Solved

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

Posted on 2004-08-09
4
219 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to Import and export files in WordPress. 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 : Click on Too…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now