art15 Posted May 6, 2008 Share Posted May 6, 2008 Hi All, I was wondering if it is possible to print specific part of page using php? Also, if I have 10 products on page which are all database driven, if I put a check box next to each product with a button to print that product. Is it a way by which I can select the detailed product page for that product on checking that option box and printing that product. Come on freaks help me with this. Thanks Quote Link to comment Share on other sites More sharing options...
Psycho Posted May 6, 2008 Share Posted May 6, 2008 You seem to be asking for several different things in your post, but some of it is a little convoluted. You say you want a checkbox and a button for each product? Why do you need the checkbox if you are going to have a button next to each product? or, if you are saying you want only 1 button for the page, then what do you want to have happen if multiple product checkboxes are checked? The easiest (and most fool-proof) method is to simply open a new page with just the information you want printed. As for printing specific parts of a page, that can be accomplished with CSS. Just use classes within your page and then use the "media" type to specify whether certain content should be printed or not. <style> @media print { noprint { display: none; } } @media screen { noprint { display: inline; } } </style> ... <span class="print">This will be printed</span> <span class="noprint">This will NOT be printed</span> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.