see, if you output anything for the user, then you cannot use a header if your include files have echo/print statements or errors that are displayed then it is considered output.
use JavaScript to redirect the page look up window.location=<url> in JavaScript reference embed that script in php. or else turn output buffering on. look up * http://www.zend.com/zend/art/buffering.php * http://www.phpbuilder.com/columns/argerich20010125.php3 (taken from php manual) -Naintara -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] t]On Behalf Of Meltem Demirkus Sent: Friday, September 06, 2002 3:47 PM To: [EMAIL PROTECTED] Subject: Fw: [PHP] question about Location I tried , but it is giving this error: Warning: Cannot add header information - headers already sent by (output started at C:\FoxServ\www\debugger\project_module\project_update_.php:2) in C:\FoxServ\www\debugger\project_module\project_update_.php on line 37 the line 2 is <? include "start_html.php" ?> and start_html.php includes: <? include("defaults.php") ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE> <? echo $page_title ?></TITLE> <META http-equiv="Content-Type" content="text/html; charset=windows-1254"> </HEAD> <BODY> and line 37 is the header I wrote <? header("Location: yournewpage.php"); ?> ----- Original Message ----- From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 12:55 PM Subject: Re: [PHP] question about Location > <? ?> doesn't mean output unless you use echo or print or whatever to > output from there anything. > Just use header("Location: yournewpage.php"); at the end. > > Meltem Demirkus wrote: > > >>I mean I made a page with php and other stuff..And there is form .When I > >>click on okbutton php is dpoing what it should . But after want the page > >> > >> > >to > > > > > >>come to another link.I asked that before and they told me that .. there > >> > >> > >must > > > > > >>be no uotput but I am using <?...?> which means output.. > >> > >>so I dont know what to do.. > >>meltem > >> > >> > >>----- Original Message ----- > >>From: "Brad Bonkoski" <[EMAIL PROTECTED]> > >>To: "Meltem Demirkus" <[EMAIL PROTECTED]> > >>Cc: <[EMAIL PROTECTED]> > >>Sent: Friday, September 06, 2002 12:36 PM > >>Subject: Re: [PHP] question about Location > >> > >> > >> > >> > >>>Not quite sure what you are getting at here? A hyper link would direct > >>>the user to another page :-) > >>>If you mean after a timeout/auto-magically perhaps you can try meta > >>> > >>> > >>refresh: > >> > >> > >>>http://www.htmlhelp.com/reference/html40/head/meta.html > >>> > >>>HTH > >>>-Brad > >>> > >>>Meltem Demirkus wrote: > >>> > >>> > >>>>Is there anyway to direct my page to another after the php and output > >>>>process work on the page? > >>>> > >>>>thanks > >>>>meltem demirkus > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > > > > > > > > > > > -- > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php