Ich hänge total an einem Skript mit dem ich Dateien auf einen Server laden kann...
also:
Ich habe ein Formular (test.php):
<form name="form1" method="post" action="test1.php" enctype="multipart/form-data">
<p>
<input type="file" name="file">
</p>
<p>
<input type="submit" name="Submit" value="Abschicken">
</p>
</form>
und ein SKript (test1.php):
<?php
if(!copy($file, "images/$file_name")){
echo("error");
}
?>
Wo liegt mein Fehler?
also:
Ich habe ein Formular (test.php):
<form name="form1" method="post" action="test1.php" enctype="multipart/form-data">
<p>
<input type="file" name="file">
</p>
<p>
<input type="submit" name="Submit" value="Abschicken">
</p>
</form>
und ein SKript (test1.php):
<?php
if(!copy($file, "images/$file_name")){
echo("error");
}
?>
Wo liegt mein Fehler?