I am trying to make a page where my users can enter a person's name then, otpionally, upload a picture of them. And then write it all to the database and "deal" with the picture.
I allready have the working code for entering a name and storing it in my MySQL database, but I don't have a clue as how to deal with the "optional" picture upload and subsequent "dealing" with that file.
I would appreciate any sample code to upload the picture and storeing the reference along with the name that was entered. And any other suggestions.
Thanks.
Upload picture
Moderator: General Moderators
check the manual out http://www.php.net/move_uploaded_file