][tmp_name]; // returns temp upload location of the image $img_err = $_FILE[img][error] /* start the process of the validation */ if ($img_err > 0) { echo There was an error uploading your image, please check to make sure the file is an image and try again.; } else { if (substr($img_name,strlen($img_name) - 4,strlen($img_name)) == jpeg && $img_size < $max_size) { move_uploaded_file($img_