I have an array of files to be uploaded
2.
3.
I can get the name
foreach ($_FILES['userfile']['name'] as $value) {
echo $value
}
but I want the index position, any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2007-06-05 at 16:39 +0100, blueboy wrote:
> I have an array of files to be uploaded
>
>
>
>
> 2.
>
>
>
> 3.
>
>
>
> I can get the name
>
$i = 0;
> foreach ($_FILES['userfile']['name'] as $value) {
>
> echo $value
$i++;
> }
>
> but I want the index position, any idea
On Tue, 2007-06-05 at 11:43 -0400, Robert Cummings wrote:
> On Tue, 2007-06-05 at 16:39 +0100, blueboy wrote:
> > I have an array of files to be uploaded
> >
> >
> >
> >
> > 2.
> >
> >
> >
> > 3.
> >
> >
> >
> > I can get the name
> >
>
> $i = 0;
> > foreach ($_FILES['userfile']['nam
if I have an array of 3 images
1.
2.
3.
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
On Tue, 2007-06-05 at 11:43 -0400, Robert Cummings wrote:
On Tue, 2007-06-05 at 16:39 +0100, blueboy wrote:
I have an array of files to be uploaded
2.
3.
I can get the name
$i = 0;
foreach ($_FILES['userfile']['name'] as $value) {
echo $value
$i++;
Robert Cummings wrote:
> On Tue, 2007-06-05 at 11:43 -0400, Robert Cummings wrote:
>> On Tue, 2007-06-05 at 16:39 +0100, blueboy wrote:
>>> I have an array of files to be uploaded
...
>> $i = 0;
>>> foreach ($_FILES['userfile']['name'] as $value) {
>>>
>>> echo $value
>> $i++;
>>> }
>
On Tue, 2007-06-05 at 17:16 +0100, blueboy wrote:
> if I have an array of 3 images
>
>
>
> 1.
>
>
>
> 2.
>
>
>
> 3.
>
>
>
>
> How do I access the filename? Like this?
>
> echo $fileName1 = $_FILES['userfile']['name'][0];
> echo $fileName2 = $_FILES['userfile']['name'][1];
> echo
Robert Cummings wrote:
On Tue, 2007-06-05 at 17:16 +0100, blueboy wrote:
if I have an array of 3 images
1.
2.
3.
No, like this:
echo $fileName1 = $_FILES['userfile'][1]['name'];
echo $fileName2 = $_FILES['userfile'][2]['name'];
echo $fileName3 = $_FILES['userfile']
On Tue, 2007-06-05 at 09:33 -0700, Jim Lucas wrote:
> Robert Cummings wrote:
> > On Tue, 2007-06-05 at 17:16 +0100, blueboy wrote:
> >> if I have an array of 3 images
> >>
> >>
> >>
> >> 1.
> >>
> >>
> >>
> >> 2.
> >>
> >>
> >>
> >> 3.
> >>
> >>
> >>
> >> >>
> >> How do I access the
This will tell you how:
On Tue, June 5, 2007 11:16 am, blueboy wrote:
>
> if I have an array of 3 images
>
>
>
> 1.
>
>
>
> 2.
>
>
>
> 3.
>
>
>
>
> How do I access the filename? Like this?
>
> echo $fileName1 = $_FILES['userfile']['name'][0];
> echo $fileName2 = $_FILES['userfile'
10 matches
Mail list logo