Re: CSS Switching

From: Date: Mon, 09 Jan 2006 18:07:28 +0000
Subject: Re: CSS Switching
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228347@lists.php.net to get a copy of this message
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

« previous php.general (#228347) next »