Use ---> header("Location:http://newwebpage.com";);

-----Original Message-----
From: David Banning [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 1:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] redirect using header


I have been trying to do a redirect with header;

<HTML>
<HEAD>
   <TITLE>Optex Staging and Services Inc. </TITLE>
</HEAD>
<BODY>
<?php
header('http://newwebpage.com');
?>
<H3>
<FONT COLOR="#3333FF">Stand By For Terminal...</FONT></H3>

</BODY>
</HTML>

I keep getting the error;

Warning: Cannot modify header information - headers already sent by
(output started at /usr/hosting/optex/goterm/temp.html:8) in
/usr/hosting/optex/goterm/temp.html on line 

I have tried the header statement in different postions, and also tried
eliminating the existing <HEAD> section with no difference. What am
doing wrong here?

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


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

Reply via email to