Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/10/2005, 06:23
acutillas
 
Fecha de Ingreso: febrero-2005
Ubicación: Campos y árboles
Mensajes: 44
Antigüedad: 19 años, 2 meses
Puntos: 0
ERROR en HEADER()

hola.

<?php
//almacenamos
ob_start();
?>

<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
//print_r($_POST);
$pwdb = mysql_connect("localhost", "root","");
mysql_select_db("VentasPerdidas",$pwdb);
$D1 = $_POST['T1'];

$sqlins = "INSERT INTO VP(TIENDA) VALUES ('$D1')";
if ( mysql_query($sqlins) )
{
header ('Location : ventaspedidas.php');
}
else
echo "<p>Fallo al insertar la fila</p>";
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

</body>
</html>
<?php
//almacenamos
ob_end_flush();
?>


no funciona el header. ¿ Por ?
__________________
Todo invento tiene su inconveniente y ese inconveniente se arregla con un invento.