Stop reloading the whole page.
Posted: Fri Apr 29, 2011 5:06 pm
My index.php:
My <div id=header> link:
I use this code to open the link BODY which is in my <div id=header> into my <div id=content>.
BUT when it happens my whole page gets reloaded. How can I stop this and have only my <div id=content> reloaded?
Code: Select all
<body>
<div id="header">
<?php include('header.php'); ?>
</div>
<div id="content">
<?php
$page = $_GET['page'];
if (!empty($page)) {
$page .= '.php';
include($page);
}
else {
include('arxiki.php');
}
?>
</div>
<div id="footer">
<?php include('footer.php'); ?>
</div>Code: Select all
<a href="index.php?page=body" class="difflink">Body</a>BUT when it happens my whole page gets reloaded. How can I stop this and have only my <div id=content> reloaded?