>From the web site:

http://php.net/manual/en/control-structures.switch.php

I came up with the code:

<?PHP
if ((!$sitestyle) || $sitestyle == 'layout' ) {
echo '<a id="switch" href="../switcher.php?set=layout_large">Increase Font 
Size</a>';
echo '<a id="switch" href="../switcher.php?set=layout_small">Decrease Font 
Size</a>';
echo '<a id="switch" href="../switcher.php?set=layout_medium">Default Font 
Size</a>';
}

switch ((!$sitestyle) || $sitestyle == 'layout' ):
case layout_medium:
echo '<a id="switch" href="../switcher.php?set=layout_medium">Default Font 
Size</a>';
break;
case "layout_large":
echo '<a id="switch" href="../switcher.php?set=layout_large">Increase Font 
Size</a>';
break;
case "layout_small":
echo '<a id="switch" href="../switcher.php?set=layout_small">Decrease Font 
Size</a>';
break;
default:
echo '<a id="switch" href="../switcher.php?set=layout_medium">Default Font 
Size</a>';
endswitch;
?>

Is the above proper code?

I have a main CSS file and a small css file (layout_medium.css as a default 
file. A file called "Switcher.php" which establishes a cookie with 
Layout_medium, Lyout_larg and Layout_small. The web pages Defaults to 
layout_medium and has two buttons in the header;

Button1 - Increase Font Size - layout_large.css, and

button 2 - Decrease Font Size - layout_small.css.

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