Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['down']))
- {
- echo 'a';
- $fichieradl = "doc.txt";
- session_start();
- header("Content-disposition: attachment; filename=".$fichieradl);
- exit();
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Downloader securisés</title>
- </head>
- <body>
- <form method="post" action="test.php">
- <input type="submit" id="down" name="down"/>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement