Parašė Waldoss· 2011 Geg. 8 18:05:48
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
<b></b><br>
<?php
if(!empty($_FILES['filename']['tmp_name'])) {
if(copy($_FILES['filename']['tmp_name'],$_FILES['filename']['name'])) {
echo "Failas ikeltas - <a href=".$_FILES['filename']['name'].">".$_FILES['filename']['name']."</a>";
}
}
?>