mickey6499
IS-IT--Management
new to php and am having problems with this one...
I want to be able to switch between different <style type="text/css"> according to what the value of $_GET['xx'] is.
*****************************************************************
switch ($_GET['xx']) {
case 'abc':
echo '<style type="text/css">
#stylea {
font: bold 11px/14px Trebuchet MS, Arial, sans-serif;
color: #ffffff;
}
</style>';
break;
case 'xyz':
echo '<style type="text/css">
#styleb {
font: bold 11px/14px Trebuchet MS, Arial, sans-serif;
color: #000000;
}
</style>';
break;
}
*****************************************************************
I'm not sure how to get this to work.
Thanks.
I want to be able to switch between different <style type="text/css"> according to what the value of $_GET['xx'] is.
*****************************************************************
switch ($_GET['xx']) {
case 'abc':
echo '<style type="text/css">
#stylea {
font: bold 11px/14px Trebuchet MS, Arial, sans-serif;
color: #ffffff;
}
</style>';
break;
case 'xyz':
echo '<style type="text/css">
#styleb {
font: bold 11px/14px Trebuchet MS, Arial, sans-serif;
color: #000000;
}
</style>';
break;
}
*****************************************************************
I'm not sure how to get this to work.
Thanks.