Phill

Hi Angus,

I believe that your problem is not in the setting code above but
instead in the output of your <link /> as shown here:

<link rel="stylesheet" type="text/css" media="screen" title="Default
font size" href="<?php echo (!$sitestyle)?'layout_medium'ß:$sitestyle
?>.css" />

It looks fine, except for the ß though perhaps consider the following
alternative...

switch ($sitestyle) {
    default:
        $sitestyle = empty($_SESSION['sitestyle']) ? 'layout_medium' :
$_SESSION['sitestyle'];
    case 'layout_medium':
    case 'layout_large':
    case 'layout_small':
        echo '<link rel="stylesheet" type="text/css" media="screen"
href="'. $sitestyle .'.css" />';
        $_SESSION['sitestyle'] = $sitestyle;
    break;
}

This should provide some extra security to prevent people from trying
to load up *anything* by passing it in.

Phill

I am sorry for not understanding. Do I take out all the other <link> statements 
except the above and the <?PHP ... ?> code. And put "switch ($sitestyle) {" in 
my CSS File?

Angus MacKinnon
Infoforce Services
http://www.infoforce-services.com

"Faith is the strength by which a shattered world shall emerge into
the light." - Helen Keller



------------------------------------

Please remember to write your response BELOW the previous text. 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-listYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-list/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to