I have a page, my index, that I put a login box on. Now, when the user logs in on that login box, I want it to refresh within the box… Does this make sense? How do I do it?
Here is my header:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo($title); ?></title>
</head>
<body>
<?php
include("forum/loginConfig.php");
?>
<div id="header"></div>
<div id="content_wrapper">
<ul id="navbar">
<li><a href="#">Home</a></li>
<li><a href="#">Community</a></li>
<li><a href="#">Purpose</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
<div id="content-top"></div>
<div id="content-bottom">
<div id="login">
<?php
session_start();
if(!session_is_registered(myusername)){
include("forum/login.php");
} else {
include("forum/main.php");
}
?>
</div>
So, I have the DIV, and if the session is registered, it should go to main.php, however it doesn’t open in the box, it opens in a new webpage. Get what I’m saying?
~b