if I have an array of  3  images

<table class="signup_table">
<tr>
<td> 1.</td>
<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">
</td>
</tr>
</table

How do I access the filename? Like this?

echo $fileName1 = $_FILES['userfile']['name'][0];
echo $fileName2 = $_FILES['userfile']['name'][1];
echo $fileName3 = $_FILES['userfile']['name'][2];

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to