Hi, tried it out,
but came to one problem:
Every data the variable has, it always displays the last "case", so in this example, "purple", with it's text: "small text for purple".
And that's not how it should work. So, if anything have the solution, please reply!
Oscar.
################## used script: ############
<?php
switch($color)
{
case 'green':
$color_txt="green text, nice";
case 'yellow':
$color_txt="small text about yellow";
case 'purple':
$color_txt="small text for purple";
}
?>
Here the text: <?php echo $color_txt ;?>