kade119 Posted April 22, 2010 Share Posted April 22, 2010 Let me tell you what i'm trying to accomplish: I want a way to play a flash mp3 player that will not start over each time a new page loads, so i thought i could have php includes swap each time i click on a new menu item that way my page doesn't refresh... would this be an appropriate way of achieve this? please know im new to PHP and found the below script --Thanks <? if ($_GET['part'] == 'page1.php') include('page1.php'); elseif ($_GET['part'] == 'page2.php') include('page2.php'); elseif ($_GET['part'] == 'page3.php') include('page3.php'); ?> [code=php:0] <a href="index.php?part=page1.php">Page 1</a> <a href="index.php?part=page2.php">Page 2</a> <a href="index.php?part=page3.php">Page 3</a> [/code] Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted April 22, 2010 Share Posted April 22, 2010 AJAX would solve this. Other than that, you cannot do it without a page refresh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.