Jump to content

[SOLVED] Loading Content


hhisc383

Recommended Posts

Hey everyone. I'm going to see if I can word this correctly!

 

Here's the problem...I use the code below to load content into my web site. I recently added a streaming mp3 player to the site, and when someone clicks a link on the site, the mp3 player starts over again. I want it to be able to continue playing without interruption when people are browsing around the site. I thought that with the code below, the only thing that changes on the page is the new content that comes in from that request.

 

<?php

if ($_GET['go']=='shows') {

include 'content/contentShows.php';

}

elseif ($_GET['go']=='journal') {

include 'content/contentJournal.php';

}

elseif ($_GET['go']=='audio') {

include 'content/contentAudio.php';

}

elseif ($_GET['go']=='video') {

include 'content/contentVideo.php';

}

elseif ($_GET['go']=='merch') {

include 'content/contentMerch.php';

}

elseif ($_GET['go']=='bio') {

include 'content/contentBio.php';

}

elseif ($_GET['go']=='photos') {

include 'content/contentPhotos.php';

}

elseif ($_GET['go']=='contact') {

include 'content/contentContact.php';

}else{

include 'content/contentNews.php';

}

?>

Link to comment
https://forums.phpfreaks.com/topic/37053-solved-loading-content/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.