Forum Moderators: open

Message Too Old, No Replies

refreshing multiple frames

         

supermanjnk

4:21 am on Jul 11, 2004 (gmt 0)

10+ Year Member



I figure this is more of a javascript question then php, but i posted it here since i'm putting it in php code. I've tried numerous different ways to do this but none have worked for me, here is my code:

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]

WhosAWhata

3:14 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



you were right
better throw this one to the JavaScript forum

jatar_k

5:25 pm on Jul 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What about using the onLoad event on the page that you use in the header function to reload the other frame?