Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. <?php
  3. if(isset($_POST['down']))
  4. {
  5. echo 'a';
  6. $fichieradl = "doc.txt";
  7. session_start();
  8. header("Content-disposition: attachment; filename=".$fichieradl);
  9. exit();
  10. }
  11. ?>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <title>Downloader securisés</title>
  16. </head>
  17. <body>
  18.  
  19. <form method="post" action="test.php">
  20. <input type="submit" id="down" name="down"/>
  21. </form>
  22.  
  23. </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement