Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form class="container-audio" id="form1" name="form1" method="get" action="index.php">
- <label>
- <input name="id" type="hidden" id="id" value="<?php echo $_SESSION['kt_login_id']; ?>" />
- <select name="som" id="som">
- <option value="">Selecione um playlist</option>
- <?php
- $pasta = 'audio/';
- rsort ($pasta);
- if(is_dir($pasta))
- {
- $diretorio = dir($pasta);
- while(($arquivo = $diretorio->read()) !== false)
- {
- $stringCorrigida = str_replace('-', ' ', $arquivo);
- echo '<option value='.$arquivo.'>'.$stringCorrigida.'</option><br />';
- }
- $diretorio->close();
- }
- else
- {
- echo 'A pasta não existe.';
- }
- ?>
- </select>
- </label>
- <label><br />
- <input type="submit" name="button" id="button" value="Vamos lá!" />
- </label>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement