load page in another frame
| From: | Velen | Date: | Sun, 12 Oct 2008 10:10:44 +0000 |
| Subject: | load page in another frame | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-45518@lists.php.net to get a copy of this message | ||
Hi
I have 3 frames on my index page using frameset. I want to display another content in the other
frames when a user has logged in successfully.
My code is like that:
## if user exists and have corresponding password mysql_num_rows >0
if(mysql_num_rows($res) != 0) {
xxxxx code to display page in target=main ;
} else {
echo "<br>";
include("left_content.html");
include(INC_DIR."my_style.php");
unset($_SESSION['userid']);
unset($_SESSION['passwd']);
echo "<br><b>Login Failed</b> Try Again!";
include(INC_DIR."user_login.php");
}
Please help.
Thanks.
Velen