I have a form through which users can upload an image. On my home machine I was validating like so:
if(isset($_FILES['image']['name']))
And it was working fine, but it fails on my work machine. I need to use:
$_FILES['image']['name'] != ''
I've tried empty($_FILES['image']), but this doesn't work either. I was just wondering why this would be the case?