Created
February 28, 2018 12:47
-
-
Save rintoug/bf1759bf1ba7853d0e38e49011f295f5 to your computer and use it in GitHub Desktop.
Uploading files in PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>File Upload Form</title> | |
</head> | |
<body> | |
<form action="upload.php" method="post" enctype="multipart/form-data"> | |
<div class="form-control"> | |
<label>Upload file</label> | |
<input type="file" name="image"> | |
</div> | |
<div> | |
<button type="submit"><span>Upload</span></button> | |
</div> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment