refresh an ifrarme .php from another iframe
Posted: Wed Jul 02, 2008 6:25 am
Hello!
I have several iframes in my website and when the user logs in (through an iframe), I want to refresh another iframe in order to view his shopping cart. Here's the code from the iframe with the log in:
So when the user presses the Submit button, the website should refresh the cartFrame.php. How can I do that? I tried the Header("Location: cartFrame.php") but it loads the cartFrame.php in the Log In iframe...
Thanks alot and sorry for the silly question...I just couldn't find some through google...
I have several iframes in my website and when the user logs in (through an iframe), I want to refresh another iframe in order to view his shopping cart. Here's the code from the iframe with the log in:
Code: Select all
<?PHP
if (isset($_COOKIE["AVweb"])) {
echo "Welcome, " . $_COOKIE["AVweb"] . '<a href="logout.php">(Log out)</a>';
exit;
}
?>
<html>
<head>
<title>
</title>
</head>
<body>
<form name="LogIn" method="post" action="LogInValidate.php">
Username:
<INPUT TYPE=text Name=txtUsr maxlength="20">
Password:
<INPUT TYPE=text Name=txtPass maxlength="20">
<INPUT TYPE=submit Name=cmdSubmit Value="Submit">
</form>
</body>
</html>
Thanks alot and sorry for the silly question...I just couldn't find some through google...