[PHP] redirect without using header

2002-11-13 Thread pig pig
Hi there, Is there a way to do redirect to another page without using the header function. I am getting an error by using header but I couldn't find any part of my code that output anything before using header. Thanks in advance CK Ong __ Do You

Re: [PHP] redirect without using header

2002-11-13 Thread Heilig (Cece) Szabolcs
Hello! I am getting an error by using header but I couldn't find any part of my code that output anything before using header. Check your included files what included before using header(); These files start with ? and ends with ? without whitespace after that? And you can use ob_start() at

Re: [PHP] redirect without using header

2002-11-13 Thread 1LT John W. Holmes
Hi there, Is there a way to do redirect to another page without using the header function. I am getting an error by using header but I couldn't find any part of my code that output anything before using header. The error message tells you where output was started. It says something like

Re: [PHP] redirect without using header

2002-11-13 Thread pig pig
Hi Heilig, I have been trying to use the ob_start and ob_end_flush(), but I am not sure where to put them. I try putting just before the header() but it still produce the warning that something has been output to the browser. Thanks CK Ong --- Heilig (Cece) Szabolcs [EMAIL PROTECTED] wrote:

Re: [PHP] redirect without using header

2002-11-13 Thread Heilig (Cece) Szabolcs
Start your code with ob_start() It fires up an output buffer, does not output (and headers) until ob_end_flush() called. Put ob_end_flush() after all, before last ? Your code might looks as follows: ?php ob_start(); echo whatever; header whatever; ob_end_flush(); ?

Re: [PHP] redirect without using header

2002-11-13 Thread @ Edwin
Hello, pig pig [EMAIL PROTECTED] wrote: function Order_action($sAction) { global $db; global $sForm; global $sOrderErr; $sParams = ; $sActionFileName = ShoppingCart.php?; do some error checking ...[snip]... I'm not sure but this could be because of some errors being

RE: [PHP] redirect without using header

2002-11-13 Thread pig pig
] redirect without using header function Order_action($sAction) { global $db; global $sForm; global $sOrderErr; $sParams = ; $sActionFileName = ShoppingCart.php?; do some error checking //-- Create SQL statement $sSQL = ; //-- Execute SQL query $db-query

Re: [PHP] redirect without using header

2002-11-13 Thread Chris Shiflett
pig pig wrote: The problem I am expriencing now is intermittent. Sometime the CGI error will appear and sometime it works fine. Could it be the latency in the network that is causing the problem? Just before the call to header() there is a db query. Someone else might have suggested this,