I am trying to do this via a form. I want the user to be able to upload a image to a directory I choose. But I'd like to only allow jpeg, jpg, or gif. I'd also like to resize any and all images uploaded and have it's location stored in the database aloing with the rest of the stuff in the form.
I have posted the current form here:
http://codedump.phpfreaks.com/viewcode.php?id=1030
I'd like to integrate this image upload feature with it. If you take a look at the code, you will see I also display a form to update the article. In the update form, how can I make it so that if the user decides to update the image he uploaded before, the new image REPLACES the current one and the location, filename, stays the same.
Please help.