User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 425,909 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,835 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2140 | Replies: 2
Reply
Join Date: Jun 2005
Posts: 45
Reputation: bobby9101 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
bobby9101 bobby9101 is offline Offline
Light Poster

Help uploading a picture

  #1  
Sep 6th, 2005
I need to create a form that has four fields in it. I need "Name", "E-Mail", "Comments", and "Picture". i have created three of the four fields, and need help with the fourth. How do I make it so that the guest can upload a picture. I need the form to e-mail itslef to me when it is done (or be put in my cgi bin". I only know how to make the form e-mail itslef to be via a process.php file
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: uploading a picture

  #2  
Sep 6th, 2005
see http://www.daniweb.com/techtalkforums/thread31803.html

and change the $accept variables into jpg, gif etc for image files
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote  
Join Date: Sep 2005
Posts: 689
Reputation: digital-ether has a spectacular aura about digital-ether has a spectacular aura about 
Rep Power: 6
Solved Threads: 41
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Practically a Master Poster

Re: uploading a picture

  #3  
Sep 28th, 2005
Originally Posted by bobby9101
I need to create a form that has four fields in it. I need "Name", "E-Mail", "Comments", and "Picture". i have created three of the four fields, and need help with the fourth. How do I make it so that the guest can upload a picture. I need the form to e-mail itslef to me when it is done (or be put in my cgi bin". I only know how to make the form e-mail itslef to be via a process.php file

You probably dont want to email the picture to you as this would mean creating an attachment in your email.

The best option is to just include a link to the picture in the email sent to you.

To send an email to you use the mail() function. You can also use SMTP or sendmail but for a simple task as this you can use mail().

see http://us3.php.net/manual/en/function.mail.php for the mail() function.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 7:56 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC