Heya,
Any time you see "Array" printed to the screen, change your echo to a print_r instead. This is one of the minor annoyances of PHP - it doesn't have a generic print function to print any data type.
Add this to your page and see what it outputs:
My hunch is that the array will contain various info about the file upload field, like location, filename, URL etc. Once you've seen what it outputs, you can output an individual element of the array like this:
- where "key_here" is the array key.
Let me know if you get stuck on anything!
- Ben
Any time you see "Array" printed to the screen, change your echo to a print_r instead. This is one of the minor annoyances of PHP - it doesn't have a generic print function to print any data type.
Add this to your page and see what it outputs:
Code:
print_r($fields["intlUpload"]);
My hunch is that the array will contain various info about the file upload field, like location, filename, URL etc. Once you've seen what it outputs, you can output an individual element of the array like this:
Code:
echo $fields["intlUpload"]["key_here"];
- where "key_here" is the array key.
Let me know if you get stuck on anything!
- Ben