Success!
if (($_FILES['userfile']['type'] == 'image/gif') or ($_FILES['userfile']['type'] == 'image/pjpeg'))
above is the code that worked.
What are other parts of this array i might be interested in
ex: $FILES['userfile']['type'], $FILES['userfile']['name']