I have a few cases for pages which are being loaded using Ajax. Each case loads perfectly apart from the default at the bottom. It just doesn't display anything.
switch($_GET['page']) {
case '#filemanager' : $page = '
<div class="innerbox">
<p>Demo text for the file manager page</p>
</div>'; break;
case '#todo' : $page = '
<div class="innerbox">
<p>Demo text for the to-do page</p>
</div>'; break;
default: $page = '
<div class="innerbox">
<h1>ADMIN CONTROL PANEL</h1>
</div>'; break;
}
echo $page;
Is there something wrong I have done in the code? If so a quick helping hand would be much appreciated.
Regards