If a form has not file element and enctype=”multipart/form-data” properties is setted, $_FILES always is setted as an empty array, right? I have to know for handling upload and doing nothing about upload. How can I distinguish $_FILES['name']['error'] > 0 or isset($_FILES[0]) ?
If form has file element, $_FILES['name']['error'] > 0
If form hasn’t file element, isset($_FILES[0])
Make three pages.
Have each form
print_r($_FILES, $_POST)below the<form>html.Test.