Re: Load a frame and work on another?
| From: | Steve Douville | Date: | Mon, 14 Jun 2004 18:47:52 +0000 |
| Subject: | Re: Load a frame and work on another? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188257@lists.php.net to get a copy of this message | ||
Did you try to just echo the javascript statements instead of trying to use
the header? Should have the same effect.
----- Original Message -----
From: "Robert Sossomon" <robert@gcnorris.com>
To: "PHP List" <php-general@lists.php.net>
Sent: Monday, June 14, 2004 2:32 PM
Subject: [PHP] Load a frame and work on another?
> Here is a piece of my code in my PHP, I am trying to reload frame C with
> updated information and reload the current page into the current frame.
> Can someone tell me where I am going wrong?
>
> if (mysql_num_rows($get_query_res) < 1){
> //invalid id, send away
> header("<script language=\"javascript\">parent.C.location.href =
> \"show.html\";</script>");
> header("<script language=\"javascript\">parent.B.location.href =
> \"prefs.html\";</script>");
> exit;
>
> Thanks,
> Robert
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>