...

View Full Version : PHP Menu without refreshing



StealthRadio
12-08-2008, 11:57 PM
Ok im trying to add in my site a php menu without the refreshing parts where it just adds the news parts of the site in the center ive got this code so far.


<?php
if (!isset($_GET['p'])) {
include "index2.php";
} else {
switch ($_GET['p']) {
case "home":
include "index2.php";
break;
case "aboutme":
include "contact.php";
break;
case "test":
include "test2.php";
break;
case "forum":
include "/forum";
break;
default:
include "index2.php";
};
}
?>

PappaJohn
12-09-2008, 12:35 AM
In order to have the content change without a page refresh, you'll need to look into AJAX. php, by itself, is not capable of this as php is server-side technology, not client-side.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum