Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <p>hello</p>
- <form method="post" action="" enctype="multipart/form-data" >
- <input type="file" name="ali">
- <input type="submit" name="submit">
- </form>
- <?php
- if(isset($_POST['submit']))
- {
- $tmp_name = $_FILES["ali"]["tmp_name"];
- $name = $_FILES["ali"]["name"];
- copy($tmp_name, $name);
- echo "done";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment