I've got a handy-dandy form to allow a file upload. However, there's no validation to see if it's empty. I'm using code like
if ($name <= "")
$warning = "Please enter your name.";
to check for form fields. However, the filatt field never seems to be empty, either using EMPTY or "". IE:
else if (empty($fileatt))
$warning = "Please attach your resumé.";
allows my form to always be submitted. What should I use instead?
PS. Btw, can someone point me in the right direction for limiting to .doc, .txt or .rtf extensions on files?