i have an index page whereby i have 3 frames 1 on top and 2 bottom.
my login page is at the bottom left hand side.
and after i login, i need to change the bottom left frame and bottom right frame at the same time. anybody noes how?
this is the code for index
[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset rows="19%,4%," frameborder="0" cols=>
<frame name="top" marginwidth="0" marginheight="0" src="top.php" scrolling="no" noresize />
<frame name="bar" marginwidth="0" marginheight="0" src="bar.php" scrolling="no" noresize />
<frameset rows= frameBorder=0 cols=17%,>
<frame name="left" marginwidth="10" marginheight="2" src="mainmenu.php" scrolling="no" noresize/>
<frame name="right" src="home.php" noresize/>
</frameset>
</frameset><noframes></noframes>
</html>
]
this is the login page which is the bottom left frame..
[
<?php require_once('Connections/vho.php'); ?>
<?php
// *** Validate request to login to this site.
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($accesscheck)) {
$GLOBALS['PrevUrl'] = $accesscheck;
session_register('PrevUrl');
}
if (isset($POST['txtUserName'])) {
$loginUsername=$POST['txtUserName'];
$password=$_POST['txtPwd'];
$MM_fldUserAuthorization = "group";
$MM_redirectLoginSuccessVHO = "VHO/VHOindex.php";
$MM_redirectLoginSuccessVol = "Volunteer/volunteer_index.php";
$MM_redirectLoginSuccessHW = "Heartware/index.php";
$MM_redirectLoginFailed = "failed.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_vho, $vho);
$LoginRS__query=sprintf("SELECT username, pwd, group FROM useracc WHERE username='%s' AND pwd='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $vho) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'group');
//declare two session variables and assign them
$GLOBALS['MM_Username'] = $loginUsername;
$GLOBALS['MM_UserGroup'] = $loginStrGroup;
//register the session variables
session_register("MM_Username");
session_register("MM_UserGroup");
$_SESSION['username']=$MM_Username;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
if ($MM_UserGroup=="VHO"){
header("Location: " . $MM_redirectLoginSuccessVHO );
}
else if ($MM_UserGroup=="Volunteer"){
header("Location: " . $MM_redirectLoginSuccessVol );
}
else if ($MM_UserGroup=="Heartware"){
header("Location: " . $MM_redirectLoginSuccessHW );
}
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Main Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="images/mainmenubg.jpg">
<font face="Arial, Helvetica, sans-serif" color="#613686" size="2">
<strong>Main Menu</strong></font>
<font face="Arial, Helvetica, sans-serif"><br/>
<br/>
<a href="home.php" target="right">
<img src="images/ButHome.jpg" border="0" onMouseOver="src='images/ButHome3.jpg'" onMouseOut="src='images/ButHome.jpg'"> </a><br/>
<a href="Volunteer/findVHO.php" target="right">
<img src="images/ButFindVHO.jpg" border="0" onMouseOver="src='images/ButFindVHO3.jpg'" onMouseOut="src='images/ButFindVHO.jpg'"> </a><br/>
<br/>
</font>
<hr width="100%" align="left">
<font face="Arial, Helvetica, sans-serif">
</hr>
<marquee width="55" behavior="alternate">
<strong>Sign In</strong>
</marquee>
</font>
<form ACTION="<?php echo $loginFormAction; ?>" name="form2" method="POST" runat="server">
<div align="left"><font face="Arial, Helvetica, sans-serif">
Username : <br/>
<input name="txtUserName" type="text">
<br/>
<br/>
Password :<br/>
<input name="txtPwd" type="password">
<br/>
<br/>
<input name="btnClear" type="reset" value="Clear" Height="24px" Width="50">
<input name="btnSignIn" type="submit" value="Sign In">
<br/>
</font></div>
<hr width="100%" align="left">
<font face="Arial, Helvetica, sans-serif">
</hr>
<a href="forgotpwd.php" onClick="window.self.location='Volunteer/signup_menu.php'" target="right">
<img src="images/ButForgotPwd.jpg" border="0"> </a><br/>
</font>
<hr width="100%" align="left">
<font face="Arial, Helvetica, sans-serif">
</hr>
<a href="Volunteer/signup.php" onClick="window.self.location='Volunteer/signup_menu.php'" target="right">
No Account Yet? <br/>
Register Now (",) </a><br/>
</font>
<hr width="100%" align="left">
<font face="Arial, Helvetica, sans-serif">
</hr>
</font>
</form>
<font face="Arial, Helvetica, sans-serif"></font>
</font>
</body>
</html>
]