Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['img_submit'])){
- $img_name=$_FILES['img_upload']['name'];
- $tmp_img_name=$_FILES['img_upload']['tmp_name'];
- $folder='upload/';
- move_uploaded_file($tmp_img_name, $folder.$img_name);
- }
- ?>
- <form action='' method='POST' enctype='multipart/form-data'>
- <input type='file' name='img_upload'><br><br>
- <input type='submit' name='img_submit'>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement