[phplib] How to do echo and setcookie at the same time From: Julio Oliveira (dblot <email protected>)
Date: 07/25/01

Hi
I´m new to this list and PHP (sorry by my english)
I´m working at e-commerce web new product.
I need to see what hapen (debug) with some variables, i use the echo like
this

// debug
echo "row 0 -- > $row[0] <br> " ;
print "row 1 -- > $row[1] <br>";
print "row 2 -- > $row[2] <br>";

but next when the program have to put the cookie there is and error

setcookie("LIBRETA");
setcookie("LIBRETA_NOM");
setcookie("LIBRETA_NIV");

The error say´s

" Cannot add header information - headers already sent by ( the line off //
debug )..

Whats wrong...

Thanks in advanced

Julio Oliveira - Buenos Aires - Argentina
Oliveira_Julio <email protected>

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>