Re: Quite a basic question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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\";, \"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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux