consulta cookies

From: Date: Tue, 29 Jan 2002 20:31:59 +0000
Subject: consulta cookies
Groups: php.general.es 
Request: Send a blank email to general-es+get-18588@lists.php.net to get a copy of this message
tengo estos dos programas , son dos giladas pero no que pasa . pru.html <html> <head> <title>pru cookie1</title> </head> <body> <form action="respuesta.php" method="post"> nombre <input type="Text" size="10" name="nombre"> <input type="Submit" value="ok" name="ok"> </form> </body> </html> respuesta.php <?php setcookie("test","$nombre"); echo $nombre; ?> el tema es que cuando lleno el campo y doy submit , teoricamente lo recibe el respuesta,php y me da el siguiente error: Warning: Cannot add header information - headers already sent by (output started at C:\Archivos de programa\BadBlue\PE\sripts\respuesta.php:2) in C:\Archivos de programa\BadBlue\PE\sripts\respuesta.php on line 3 gracias

« previous php.general.es (#18588) next »