Loading new page in different frame
Posted: Fri Mar 26, 2004 5:58 am
Hello, (first post, newbie)
I'm trying to modify aMember which will manage the membership on our site.
When one logs in successfully the login.php page does a redirect to page1.html if the user was not trying to access a protected page, or the protected page if he was.
I'd like it also to load a new page (page-x.html) at the same time into the upper frame (UpperFrame) of the site (I know, I'm sorry... I inherited this frames site). From what I've been reading I need some javascript here. Can anybody show me how to do this? Please bear in mind that this is all double-dutch to me.
Thanks, thanks, thanks.
Tassell[/i]
I'm trying to modify aMember which will manage the membership on our site.
When one logs in successfully the login.php page does a redirect to page1.html if the user was not trying to access a protected page, or the protected page if he was.
Code: Select all
if ($_POSTї'amember_redirect_url']) {
$redirect = $_POSTї'amember_redirect_url'];
} elseif (count(array_unique($urls)) == 1){
if (in_array('htpasswd_secure', $pluginsї'protect'])){
$member_login_pw =
htpasswd_secure_get_login($HTTP_SESSION_VARSї'_amember_user']ї'login']).
':'.
htpasswd_secure_get_passwd($HTTP_SESSION_VARSї'_amember_user']ї'pass']);
$redirect = add_password_to_url($urlsї0], $member_login_pw);
} else {
if ($configї'display_member_pw_urls']) {
$member_login_pw =
$HTTP_SESSION_VARSї'_amember_user']ї'login'].
':'.
$HTTP_SESSION_VARSї'_amember_user']ї'pass'];
$redirect = add_password_to_url($urlsї0], $member_login_pw);
} else {
$redirect = add_password_to_url($urlsї0]);
}
}
} else {
$redirect = $configї'root_url'] . "/../page1.html";
}
#print_r($urls);
html_redirect("$redirect", 0, 'Redirect', "Logging in...");
?>Thanks, thanks, thanks.
Tassell[/i]