printerfriendly php page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Anant
Forum Commoner
Posts: 66
Joined: Wed Jul 14, 2010 11:46 am

printerfriendly php page

Post by Anant »

Hi,

I have a php page with list of question and user enters answer -
Now question is how can i have a printer friendly page - i mean what is the best approach. I want user to be able to print the question and answer with score but leave the questions they have not answered.

I hope this makes some sense - if not let me know and i will try to explain more.

Thanks
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: printerfriendly php page

Post by social_experiment »

Anant wrote:Now question is how can i have a printer friendly page - i mean what is the best approach
You'd probably have a printer friendly stylesheet attached to the page.

Code: Select all

<link href="printerstyle.css" type="text/css" rel="stylesheet" type="print" />
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply