Forum Moderators: open
setcookie("testcookie", test, time()+86400);
echo "<html>";
echo "<head>";
echo "<title>Untitled Document</title>";
echo "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>";
echo "<link href='css/css.css' rel='stylesheet' type='text/css'>";
echo "</head>";
echo "<body bgcolor='#CCCCCC' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>";
echo "<form onsubmit='parent.frame['login'].location='login_form.php'; return true;' name='form1' method='post' action='logout.php'>";
echo "<div align='right'><font size='1' face='Arial, Helvetica, sans-serif'><strong>Users:</strong> ";
echo "</font>";
echo "<input class='Buttons' type='submit' name='Submit' value='Logout'>";
echo "</div>";
echo "</form>";
echo "</body>";
echo "</html>";
basically i'm trying to get it to refresh two frames after you click logout: login, and register, right now logout sends you to this code
if (isset($_COOKIE["testcookie"]))
{
setcookie("testcookie", test, time()-86400);
header("Location: [example.org...]
}
Now I can use the header for one, but i have no way of updating the other frame, (I would still like to know how to do multiple frames for use in other things)
Thanks for your time.
[edited by: jatar_k at 5:20 pm (utc) on July 11, 2004]
[edit reason] generalized url [/edit]