I want to generate a pdf which i already did ...i already have a pdf generated with all results i need...but i want to put a button so that we can download that pdf of result...I used readfile(), headers as below but its not working....

<form method="post" target="_blank" > <input type="submit" name="download" value="Download Most Recent PDF"></form> <?php
...