I have a search results in a form which displays a particular persons details. Here what I need is I开发者_开发技巧 should have a print page button and print that search result. How is that posible in PHP?
You can use the file -> print from the browser and use a CSS print
If you want a button to print on the website, you will have to use Javascript
<form><input type="button" value=" Print this page "
onclick="window.print();return false;" /></form>
精彩评论