I guess my thinking was that using a form that begins with:
form action="processImage.php" enctype="multipart/form-data" method="post">
it was only for uploading an image. Are you saying I can add any other input fields that I want? (still new to forms)
I'm using php with the form to upload some text information into a database table then, once the data has been added, retrieve the unique primary key number from that record so that I can append it onto the front of the image name that will be uploaded in order to make sure the image name itself is unique. For instance:
myImage.jpg ----> 102myImage.jpg
where the 102 is the same as the primary key for that record.
Therefore I need the text data uploaded before the actual image is uploaded to have time to retrieve the unique number. However, I still wanted the user to be able to browse to the image that will be uploaded on the same form as all the other input.
...hope this makes sense. There are better ways maybe, so any suggestions are welcome.