Click to See Complete Forum and Search --> : form for image and text upload
CTWorion
08-13-2007, 08:59 AM
Thanks to some great code posted on this site, I have successfully created a form that people can use to upload images to my server. But I want them to fill out some info on that same form, and I need to get that info and match it up with the image they upload.
Can anybody point me in the right direction for a tutorial or something that will show me how to do this? Either by zipping the info all together and then sending it to the server, or uploading a separate txt file, and giving it the same unique name my form is already giving the image.
Any help would be greatly appreciated.
TJ111
08-13-2007, 09:41 AM
Your best option for this would be to store the files in a database. Then you could have all the associated information stored in the spot as the original file, and it requires little to no extra work.
CTWorion
08-13-2007, 10:45 AM
Ok, that makes sense. I'm not exactly a programmer, so do you happen to have any specific places one could go to view tutorials on this kind of setup?
TJ111
08-13-2007, 10:48 AM
Try This (http://www.php-mysql-tutorial.com/php-mysql-upload.php). Then once your database is working correctly you can add fields to the database to contain anything you want, and then when you go to access them it'll all be retrievable at once with a single query.
CTWorion
08-13-2007, 11:20 AM
Thanks so much. I'll give this a shot.
chris.h
08-13-2007, 11:21 AM
I was logging on to ask for some help with this script, as I need to get more than one image upload and it looks like it will do what you need as it if you didn't want to go down the database route...
The form code is at
http://www.americanfinancing.net/email-image-upload.cfm
And I found it the simplest image upload form to install, that said that was untill we needed to upload two images at the same time...
---
CTWorion
08-13-2007, 11:28 AM
Wow, that's great! I'll take a look at that as well. If it will let me add new input fields into the form, that may be exactly what I need.
chris.h
08-13-2007, 11:31 AM
Any problems drop me a line, was quite simple to add extra text fields to, It sends out an email linked to the image too which is good.
it was just when I needed a second image field I got stuck... http://www.webdeveloper.com/forum/showthread.php?t=158007
chris.h
08-15-2007, 07:27 AM
Also managed to solve my own trouble in the end. If you need a script to upload more than one image, theres one here, its the one on the second page of the thread that works. V similar script.
http://www.vodahost.com/vodatalk/forms/7233-how-upload-file-using-form.html
All the best,
Chris