I am trying to create a check in my code to see if an image was selected in my form

PHP Code:
doesn't seem to work, as in it keeps telling me is NOT set even when I select an image to upload. I've heard of using

PHP Code:
if($_FILES['image']['name'] != ""
but don't seem that working either...

Help please...thanks.