Hello!
I am using a php/mysql based CMS that has a music feature. Problem is in order to hear the music, you have to click the “music on” link. I want it to default to music on when you hit the site, instead of being off. I have tried just about everything I can, but nothing is working. The best I can do is music on all of the time with no option of being able to turn it off. I am going to copy the code below. Any help is appreciated!
<? foreach ($_GET as $varible => $value) { $$varible = $value; } foreach ($_POST as $varible => $value) { $$varible = $value; } include_once("include/m.inc.php"); session_register("s_25music"); if ($musicplayer=="on"){ $HTTP_SESSION_VARS["s_25music"]=1; }else if ($musicplayer=="off"){ $HTTP_SESSION_VARS["s_25music"]=2; }else { if ($HTTP_SESSION_VARS["s_25music"]!=2); //$HTTP_SESSION_VARS["s_25music"]=1; } if ($config->midi){ if ($HTTP_SESSION_VARS["s_25music"]==1){ //$player="Music Off"; $player="Music On"; $music="n n n n n"; $pg=$music.$pg; } else { $player="Music Off"; //$player="Music On"; } echo $pg; } ?>