Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once "add_entry_file.php";
- if (isset($_POST['upload'])) {
- FileSubmit::submit($_FILES['xlsfile']['tmp_name'], $_POST['filename']);
- } else {
- ?>
- Carica il file di anticipi e saldi
- <form action="submit_entry_file.php" method="post" enctype="multipart/form-data">
- <!-- Campo file di nome "image" -->
- <input name="xlsfile" type="file" size="40" />
- <input type="hidden" name="upload" value="1" />
- <select name="filename">
- <?php
- for ($i = 1; $i < 13; $i++) {
- $value = $i . "_" . date("Y");
- if ($i < 10) $value = '0' . $value;
- echo "<option value=\"$value\">$value</option>\n";
- }
- ?>
- </select>
- <br /><br />
- <!-- Pulsante -->
- <input name="upload" type="submit" value="Carica file" />
- </form>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement