hi
i am using an array of file, i mean input type ="file" to upload number of files at a time.
i want to print or echo that file array values , how can i do this.
please help me
Thanks
hi
i am using an array of file, i mean input type ="file" to upload number of files at a time.
i want to print or echo that file array values , how can i do this.
please help me
Thanks
You can create an array by suffixing []
to the name of the field:
<from method="POST" enctype="multipart/form-data">
<input type="file" name="myfile[]" />
<input type="file" name="myfile[]" />
<input type="file" name="myfile[]" />
<!-- and so on -->
<input type="submit" name="submit" value="Submit" />
</form>
PHP
if (isset($_POST['submit']))
{
print_r($_FILES['myfile']);
}