Dears,
The php program is to use to upload the image file to the server, then how is the file verify to be image file?
Thanks Simon
Asuming you've named the file field 'name', check out the '$name_type' variable, it should contain the mime type.