By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,046 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,046 IT Pros & Developers. It's quick & easy.

Image Upload + Other Form Data At The Same Time?

chunk1978
100+
P: 224
hi everyone... shortly i'll begin writing a PHP script for a form i created... on the form there are text fields, select menus and image upload areas... i would like to know if it's possible to process these 3 types (text, selections, file upload) of information at the same time with one PHP script...

if not, how would you suggest i accomplish this without breaking down or separating my form in different parts...
Feb 3 '07 #1
Share this Question
Share on Google+
4 Replies


Motoma
Expert 2.5K+
P: 3,235
hi everyone... shortly i'll begin writing a PHP script for a form i created... on the form there are text fields, select menus and image upload areas... i would like to know if it's possible to process these 3 types (text, selections, file upload) of information at the same time with one PHP script...

if not, how would you suggest i accomplish this without breaking down or separating my form in different parts...
It is possible to process these all with one script.
The form text and menu elements will arrive in the $_POST or $_GET variables (depending on the form method), whilst the uploaded file's information will arrive in the $_FILES variable.
Feb 3 '07 #2

chunk1978
100+
P: 224
oh... a few things i forgot to mention...

A) i'm super ultra mega new to PHP ;-)

B) i would ideally like to have all the form data sent to myself by email, while having the user be redirected to a "thanks!" type of page
Feb 3 '07 #3

Motoma
Expert 2.5K+
P: 3,235
oh... a few things i forgot to mention...

A) i'm super ultra mega new to PHP ;-)

B) i would ideally like to have all the form data sent to myself by email, while having the user be redirected to a "thanks!" type of page
In that case, take a look at my post in this thread. I gave a little sample code for sending email with attachments.
Feb 3 '07 #4

chunk1978
100+
P: 224
In that case, take a look at my post in this thread. I gave a little sample code for sending email with attachments.
great... thanks a lot Motoma... i'll defiantly have a look...
Feb 3 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.