returning the index number
| From: | blueboy | Date: | Tue, 05 Jun 2007 15:39:14 +0000 |
| Subject: | returning the index number | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-256101@lists.php.net to get a copy of this message | ||
I have an array of files to be uploaded
<td><input name="userfile[]" type="file"></td>
</tr>
<tr>
<td> 2.</td>
<td><input name="userfile[]" type="file"></td>
</tr>
<tr>
<td>3.</td>
<td><input name="userfile[]" type="file">
I can get the name
foreach ($_FILES['userfile']['name'] as $value) {
echo $value
}
but I want the index position, any ideas?