Hi,
Is the correct way to tell if a "file" form field is filled in or not to use this:
if (is_uploaded_file($_FILES["userfile"]["tmp_name"]))
The commands: isset, empty, eregi aren't accurately telling me if the field is filled in or not using either $_POST["userfile"] or $_FILES["userfile"] variables.
What is the correct way to check this?
Thanks!
Nate
Is the correct way to tell if a "file" form field is filled in or not to use this:
if (is_uploaded_file($_FILES["userfile"]["tmp_name"]))
The commands: isset, empty, eregi aren't accurately telling me if the field is filled in or not using either $_POST["userfile"] or $_FILES["userfile"] variables.
What is the correct way to check this?
Thanks!
Nate
