in reply to Printer Friendly Pages

This is where stylesheets come in really handy. If user requests the "printer friendly" page, don't use stylesheets, if not, do use stylesheets :-)

It's kinda hard to be more specific, for I have no clue what your script does, nor what the output looks like and how it's generated...

HTH

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re: Re: Printer Friendly Pages
by Fletch (Bishop) on May 18, 2004 at 00:43 UTC

    Actually in both cases you should use CSS. You can either serve one stylesheet with any directives specifically for printing set off using @media print { ... }, or use multiple <link> elements with the apropriate media attribute. See Media Types in the CSS spec, or Designing With Web Standards (aka the hideous orange Zeldman book).

    Not that it has anything to do with perl . . .

Re: Re: Printer Friendly Pages
by b310 (Scribe) on May 17, 2004 at 20:29 UTC
    Hi:

    I have a form where the user enters a bunch of data. The data is passed to a script where it is processed via lots of calculations. The script then displays a page with the results of the calculations.

    I would like the user to have an option to click on a link or button that can show them a page where images, colors, etc. are all eliminated.

    I'm not quite sure how much more I can add about what my script does.

    Thanks for your reply.