<form action="" method="post" enctype="multipart/form-data">
Upload File: <input type="file" name="upload" />
<input type="submit" name="submit" value="Upload File" />
</form>
<?php
if(isset($_POST['submit'])){
if(move_uploaded_file($_FILES[ 'upload']['tmp_name'], 'uploads/'.$_FILES['upload'][' name'])){
print "File Uploaded";
}
else {
print "File Not Uploaded";
}
}
?>
Comments
Post a Comment