•
•
•
•
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
![]() |
•
•
Join Date: Jun 2005
Posts: 45
Reputation:
Rep Power: 4
Solved Threads: 0
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
•
•
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation:
Rep Power: 4
Solved Threads: 6
see http://www.daniweb.com/techtalkforums/thread31803.html
and change the $accept variables into jpg, gif etc for image files
and change the $accept variables into jpg, gif etc for image files
Ecommerce-Web-Store.com Building Your e-Business.
•
•
•
•
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- The Best Sunset Picture Ever !! (Geeks' Lounge)
- uploading image in database (PHP)
- computer times out when uploading filles (Web Browsers)
- can't open any picture files, gets an error (Windows NT / 2000 / XP / 2003)
- xp Picture folder (Windows NT / 2000 / XP / 2003)
Other Threads in the PHP Forum
- Previous Thread: help with setting up a forum site
- Next Thread: Wait some time and after that redirect another Location


Linear Mode