> <input class='form' type='text' size='3' name='tracknum[]'
> value='$tracks'>
> <input class='form' type='text' size='25' name='uartist[]'
> value='$uartist'>
> <input class='form' type='text' size='25' name='usong[]' value=''>
> 
> 
> <input type='hidden' name='MAX_FILE_SIZE' value='10000'>
> <input type='hidden' name='upload' value='yes'>
> <input class='nappi' type='submit' name='submit' value='Upload songs'>
> 
> 
> And the php part:
> 
> $number_of_files = count($_FILES['userfile']);
> for ($i=0; $i < $number_of_files; $i++)
>       {
>        if ($_FILES['userfile']['size'] !== 0)
>              {
>         $namename= "$uartist[$i]-$usong[$i].mp3";
>         $file=$_FILES['userfile']['tmp_name'][$i];
>       if (move_uploaded_file($_FILES['userfile']['tmp_name'][$i],
> "/mp3/$namename"))
>                    {
>             print "<tr><td>File $namename upload and rename
>          succesful!</td></tr>";
>                    }
>              }
>              else
>              {
>              print "<tr><td>You have to upload some files!</td></tr>";
>              }
>        }

You don't even have a "file" form element, or an element named
"userfile" so your FOR loop will never run...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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

Reply via email to