Re: Need help using PHP to upload images and collecting data from a form
If you're going to allow visitors to upload images, you can either use a third party script (like Coppermine) or have a good read of PHP documentation. PHP.net has a wealth of information and script snippets.
At the very minimum you're going to need to understand:
* $_SESSION for associating the username they've logged in with the image so you can write it to the database or rename it
* mime type checking to ensure that they don't upload an .exe or .php instead of a .jpg (it's no good just checking the extension)
* renaming the files once uploaded so they don't contain malicious characters
The process is not so hard, but to be security conscious it's worth doing some reading on how to prevent file upload attacks etc.
Cheers,
Nigel
__________________
-------------------------------------------------
World Music World - bringing the World's Folk Music Cultures Together
http://www.worldmusicworld.com/
-------------------------------------------------
|