hello i want to upload files using PHP but the problem is that i don't know how many files i will upload, my question is how can i upload files if i use file[] ?
<form action="upload.php" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label><input type="file" name="file[]" id="file" />
<br />
<label for="file">Filename:</label><input type="file" name="file[]" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
i will add just File box and i will use javascript to create more file input to upload but how to handle them in PHP ?
Thanks