Using a form to upload user input like an image to the filesystem and other text to MySQL, how would I check for and only allowing two image types to upload
jpeg and gif
also Ive heard of checking first several bits of the image to validate it is indeed an image.
Can these steps be coded into my existing form, which is done in PHP using insert to mysql table?
If this can be done, I would like to ask for an example of these steps.