Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/04/2009, 16:19
diegomel
 
Fecha de Ingreso: abril-2009
Mensajes: 409
Antigüedad: 15 años
Puntos: 3
redireccionar a otra pagina

yo tengo un insert y la idea es que al hacerla me direccione a otra pagina, pero me tira un error por el header, no hay otra forma de hacerlo? o como soluciono ese error.

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\sbp\insertar.php:4) in C:\xampp\htdocs\sbp\accinsertar.php on line 77

gracias.


Código PHP:
<?php
//consulta SQL
mysql_query("insert into caballos(nombre,tomo,folio,pelo,madre,padre,sexo,raza,fechanacim,fechahoy) values 
   ('$_POST[nombre]','$_POST[tomo]','$_POST[folio]','$_POST[pelo]','$_POST[madre]','$_POST[padre]','$_POST[sexo]','$_POST[raza]','$fechanacim','$fechahoy')"
,$conexion) or die("Problemas en el select".mysql_error());
mysql_close($conexion);
header("location:regexito.html");

?>