Re: Quite a basic question
| From: | Leif Gregory | Date: | Tue, 08 Mar 2005 15:20:42 +0000 |
| Subject: | Re: Quite a basic question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210222@lists.php.net to get a copy of this message | ||
Hello Mário,
Tuesday, March 8, 2005, 8:18:34 AM, you wrote:
M> How can i solve this ?
M> Any help would be apreciated.
Because you're outputting javascript to the browser before doing the
redirection. You can't output *anything* to the browser before a
redirect.
M> echo"
M> <script language=\"JavaScript\">
M> window.open (\"http://www.google.com\",
M> \"mywindow\", \"status=1,
M> toolbar=0, resizable=0,
M> width=200, height=200\");
M> </script>";
You output the above, then doing the below won't work.
M> header("Location: http://www.dte.ua.pt/cv/");
--
Leif (TB lists moderator and fellow end user).
Using The Bat! 3.0.2.3 Rush under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB