Hope this is right...
I would assume that snippet of code has a switch statement built into it, so it would read more like this:
$link = $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&music=yes' : '&music=no');
But I don't do it that way. I build a switch statement that says, basically, if user clicks on link to hear music, then make $link A. If user clicks on link to NOT hear music, then make $link B. Somewhat like this:
<?
switch($_REQUEST[mode]){
///////////////////////////
// Display correct head title
case "yes_music":
$link = $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&music=yes');
break;
case "no_music":
$link = $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&music=no');
break;
default:
$link = $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&music=yes');
}
echo $link;
?>
With the link from the previous page being written out like so:
<a href=\"index.php?mode=yes_music\">Play Music</a> <BR>
<a href=\"index.php?mode=no_music\">Don't Play Music</a>
Maybe this isn't what you're looking for.