Código PHP:
<?php
$connect = mysql_connect('xxxxx', 'xxxxx', 'xxxxxx');
mysql_select_db('xxxxx');
session_start();
?>
<html><head></head>
<body>
<?php header('Location: gracias.php'); ?>
</body>
</html>
a la pagina le llega una variable de sesion que se llama $_SESSION['compras']
y el html resultante:
Código HTML:
<html><head></head> <body> <br /> <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /homepages/40/d225893226/htdocs/pfc/tienda/datos.php:6) in <b>/homepages/40/d225893226/htdocs/pfc/tienda/datos.php</b> on line <b>6</b><br /> </body> </html>