Joemoemofo
10-24-2009, 02:44 AM
How would I go about creating a php image upload form that assigns whatever I pick from a drop down list and renames the image file that is selected for upload to that and uploads it to my server at the same time? If my question is confusing... please read...
I want to create this form where a person can upload a picture of one of our client's artwork. However, we want to assign it to a teacher in our institute lets say. The person will come to this webpage, and there will be two form elements--the drop down list of teachers and the file browser for the image wanting to upload. Once, submitted--it will then change the file(s) name, preferrably multiple image uploads, and put it in a CHMOD 777 folder on our server. With multiple uploads to the same teacher, the script would need to have an ongoing number at the end (for example... smith5.jpg smith6.jpg..)
How does one go about doing this?
I want to create this form where a person can upload a picture of one of our client's artwork. However, we want to assign it to a teacher in our institute lets say. The person will come to this webpage, and there will be two form elements--the drop down list of teachers and the file browser for the image wanting to upload. Once, submitted--it will then change the file(s) name, preferrably multiple image uploads, and put it in a CHMOD 777 folder on our server. With multiple uploads to the same teacher, the script would need to have an ongoing number at the end (for example... smith5.jpg smith6.jpg..)
How does one go about doing this?