PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
My php processor for a file upload form is showing that I uploaded a file, even when i press submit with a blank form.
Here is the code that is used to determine how many files were uploaded. It counts correctly when I upload 1, 2, 3 or more files. It does not set the count correctly if the form is submitted with 0 files uploaded.
The file controls will still be set in the $_FILES array but they will be empty. I would need to see your input names to tell how would be best to count the non empty ones. Probably something like this:
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.