
April 11th, 2004, 01:31 PM
|
|
Registered User
|
|
Join Date: Oct 2002
Location: Pasadena, CA
Posts: 11
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
nest SWITCH $_SERVER ['QUERY_STRING']
Hi,
The code below with usage of index.php?css=none, disables css:
PHP Code:
<?php if($_GET['css'] != "none") { ?>
<style type="text/css" media="screen">
@import "../includes/css/myStyles.php";
</style>
<?php } ?>
Q: How can I nest switch? ...to get index.php?home&css=none to disable css at index.php?home.
Part of my navigation (switch):
PHP Code:
<?php
switch ($_SERVER ['QUERY_STRING']) {
case 'home' :
include '../includes/inc/cont_home.inc.php';
break;
default:
include '../includes/inc/cont_default.inc.php';
break;
}
?>
Thankx in advance,
Arthur
|