I am working through an example I found that imports Excel XML data into a database table. The following code:
<html>
<body>
<form enctype="multipart/form-data"
action="import_facilities.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
<table width="600">
<tr>
<td>Choose file:</td>
<td><input type="file" name="file" /></td>
<td><input type="submit" value="Upload" /></td>
</tr>
</table>
</form>
</body>
</html>
submits the file to another php page that has the following line of code:
if ( $_FILES['file']['tmp_name'] )
I understand the conditional part, and I think I understand the "['file']" reference, but I do not understand the "['tmp_name']" part.
Will someone please help me understand this statement?
Thank you.