You are here: Re: [PHP] CSS Switching « PHP « IT news, forums, messages
Re: [PHP] CSS Switching

Posted by Mike Tuller on 01/09/06 20:52

Thanks. This is perfect.


On Jan 9, 2006, at 12:07 PM, John Nichel wrote:

> Mike Tuller wrote:
>> I am drawing a blank on how to go about doing this for some
>> reason. I have a page that pulls info from a database, and I want
>> to have a version for viewing, and a version fro printing. Since
>> the data is dynamic, I need to keep the data, but be able to
>> switch the stylesheet. Can someone give me a push in the right
>> direction as to how they would go about this?
>
> <a href="<?php echo ( $PHP_SELF ); ?>?print=y">Print This Page</a>
>
> <?php
>
> if ( isset ( $_GET['print'] ) && $_GET['print'] == "y" ) {
> // do the printing stuff
> } else {
> // do the regular display stuff
> }
>
> ?>
>
> --
> John C. Nichel IV
> Programmer/System Admin (ÜberGeek)
> Dot Com Holdings of Buffalo
> 716.856.9675
> jnichel@dotcomholdingsofbuffalo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация