Folgendes Upload Script macht nicht was ich will. Woran liegt es?
<form method="POST" enctype="multipart/form-data" action="<?PHP echo $PHP_SELF ?>">
<table>
<?
$z1=0;
do
{
$z1++;
echo'<tr>
<td><input type="file" name="'.$z1.'"></td></td>
</tr>';
}
while ($z1<2);
?>
<tr><td><input type="submit" name="up" value="upload"></td></tr>
</table>
<?
if(isset($POST['up']))
{
$z2=0;
$pfad="http://127.0.0.1/htdocs/AP/mylogin/Projekte/";
do
{
$z2++;
$file=$_POST[$z2];
move_uploaded_file($file,$pfad);
}
while($z2<2);
}else;
?>
<form method="POST" enctype="multipart/form-data" action="<?PHP echo $PHP_SELF ?>">
<table>
<?
$z1=0;
do
{
$z1++;
echo'<tr>
<td><input type="file" name="'.$z1.'"></td></td>
</tr>';
}
while ($z1<2);
?>
<tr><td><input type="submit" name="up" value="upload"></td></tr>
</table>
<?
if(isset($POST['up']))
{
$z2=0;
$pfad="http://127.0.0.1/htdocs/AP/mylogin/Projekte/";
do
{
$z2++;
$file=$_POST[$z2];
move_uploaded_file($file,$pfad);
}
while($z2<2);
}else;
?>
Kommentar