Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Usuwanie przez checkboxa
harymilloki
post
Post #1





Grupa: Zarejestrowani
Postów: 39
Pomógł: 0
Dołączył: 21.02.2013

Ostrzeżenie: (10%)
X----


Mam następujący problem. Ten skrypt wyświetla mi pliki pdf z katalogu. Teraz chciałbym usuwać te pliki za pomocą checkboxa. Najlepiej kilka na raz. Czy może mi ktoś podesłać jakieś gotowe rozwiązanie?

  1.  
  2. <?php
  3.  
  4. try {
  5. $str = '<ul>';
  6. $di = new DirectoryIterator('./dokumenty_dostawy/');
  7. foreach ($di as $file) {
  8. if (!$file->isDot() && !$file->isDir())
  9. $str .= '
  10. <table align = "left"class = "stripeMe" width=97%>
  11. <tr>
  12. <td><a href="' . $file->getPathname() . '">' . $file->getFilename() . '</a></td>
  13. </tr>
  14. </table>';
  15. }
  16.  
  17. $str .= '</ul>';
  18. echo $str;
  19.  
  20. } catch (Exception $e) {
  21. echo $e->getMessage();
  22. }
  23.  
  24.  
  25. ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 15:21