troubleshooting Question

$_FILES array in PHP

Avatar of Colin Brazier
Colin BrazierFlag for United Kingdom of Great Britain and Northern Ireland asked on
PHPWeb Development
16 Comments1 Solution91 ViewsLast Modified:
Hi experts,

Coming back to my little project after time away, and I found an error.

Here's the form input

<label class="item_label">Select file:</label>
                <input type="file" id="filFileName" name="filFileName" accept=".pdf,.doc,.docx,.txt,.xls,.xlsx" style="width:25em; color: red;" <?=$disabled;?> />
                <label for="filFileName" id="fileLabel"></label>

and some code from the php processing it:
$file_types_array = array('doc', 'docx', 'xls', 'xlsx', 'pdf');
			$uploaded = (is_uploaded_file($_FILES['filFileName']['tmp_name'])) ? 'Upload File Present' : 'Upload File Not Present';

It is complaining that filFileName is undefined.  

Notice: Undefined index: filFileName in E:\xampp\htdocs7\includes\ on line 68

Am I missing something obvious here?

Thanks for reading.

Join our community to see this answer!
Unlock 1 Answer and 16 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros