473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Image Upload + Other Form Data At The Same Time?

chunk1978
224 100+
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
4 2572
Motoma
3,237 Expert 2GB
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
224 100+
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
3,237 Expert 2GB
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
224 100+
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

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

Similar topics

15
by: lawrence | last post by:
I've been using the following function (yes, it is inelegant, what can I say, I wrote it a long time ago) to upload images. Haven't had a problem with it for at least a year, and I don't recall...
6
by: lawrence | last post by:
I've the form you see below, which is supposed to upload an image. I expect the image name as a var to be $uploadedFile. In the receiving function, I've this code: global $uploadedFile,...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
1
by: John Thompson | last post by:
We're sooo close. When we load the page to upload the image, all of the prms go through except the binary image data. Using SQL server with the data type set to "image". Please help! Thanks-...
2
by: prakharv | last post by:
Hi All, Below is the code which I am using to upload a jpeg file to the server. But the problem I am facing is that it is not copying the entire contents of the image file to the webserver and it...
0
by: aris1234 | last post by:
hello.. How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then...
7
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a...
7
by: mishrarajesh44 | last post by:
hii all Truly telling i hav got this code from net & i am finding error while running the code below.. code:- <?php $idir = "photo/"; // Path To Images Directory $tdir =...
1
by: sravani1 | last post by:
This code runs like when i submit the form it takes the image and displayed and top of the image a map will displayed. But actually i want that when i give the image it checks the location in the map...
1
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.