I have a form somewhat like this:
Now, how can I tell how many, if any, of these include files?Code:<form action="index.php" method="post"> 1. <input type="file" name="f[]"><br> 2. <input type="file" name="f[]"><br> 3. <input type="file" name="f[]"><br> <input type="submit" value=" Send "> </form>
I tried something like:
But neither work.Code:echo count($_FILES['f']); //and: echo count($_POST['f']);![]()




Reply With Quote