View Full Version : Print Between tags?

01-14-2004, 06:11 AM
Is there anyway I can get a page (located in a frame) to print the content between to tags.

For example:

blah, blahblah, blahblah, blahblah, blah
blah, blahblah, blah
blah, blahblah, blahblah, blahblah, blah

This isn't.blah, blahblah, blahblah, blahblah, blah

I have a page that has some extra content I don't want when it is going to be printed. Thanks.

01-15-2004, 10:59 PM
$content = "blah blah blah";
print $content;

thats the best i can understand what you have said....

01-16-2004, 12:21 AM
To just hide stuff from a printer is nothing to do with php, but your question is sorta confusing. So I don't know if DsgnrsTLZAdmin answered your question, or if this will

<style type="text/css">
@media print {
.dontPrintMe{display : none;}

<p>blah blah blah <span class="dontPrintMe">You can't print this :p </span> blah blah blah</p>

01-16-2004, 12:40 AM
Reading this again, i think i understand what you mean. But like NightFire said, it has nothing to do with php but if you want to use it? do this:

//this will not be printed.
print "this will be printed";
//this will not be printed.