Advertisement
wandrake

Untitled

Nov 15th, 2012
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2.     require_once "add_entry_file.php";
  3.  
  4.     if (isset($_POST['upload'])) {
  5.         FileSubmit::submit($_FILES['xlsfile']['tmp_name'], $_POST['filename']);
  6.     } else {
  7. ?>
  8.  
  9. Carica il file di anticipi e saldi
  10.  
  11. <form action="submit_entry_file.php" method="post" enctype="multipart/form-data">
  12.     <!-- Campo file di nome "image" -->
  13.     <input name="xlsfile" type="file" size="40" />
  14.     <input type="hidden" name="upload" value="1" />
  15.     <select name="filename">
  16.         <?php
  17.             for ($i = 1; $i < 13; $i++) {
  18.                 $value = $i . "_" . date("Y");
  19.                 if ($i < 10) $value = '0' . $value;
  20.                 echo "<option value=\"$value\">$value</option>\n";
  21.             }
  22.         ?>
  23.     </select>
  24.     <br /><br />
  25.     <!-- Pulsante -->
  26.     <input name="upload" type="submit" value="Carica file" />
  27. </form>
  28.  
  29. <?php
  30.     }
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement