Ver Mensaje Individual
  #5 (permalink)  
Antiguo 04/12/2007, 09:03
Avatar de hulray
hulray
 
Fecha de Ingreso: septiembre-2006
Mensajes: 630
Antigüedad: 17 años, 7 meses
Puntos: 3
Re: problemas al resfrescar el formulario

a mi me pasaba lo mismo, y era porque tenia un campo autoingrementable...

con este codigo lo repare, adaptalo al tuyo

Código PHP:
<?php
 
include("conec.php");
   
$link=Conectarse();
$ninterno=$_POST['ninterno']; 
if(
$ninterno==NULL
 { 

 } 
else 
 { 
$Sql="insert into equipos (ninterno,equipo,marca,modelo,nserie,ano,motor,modelo_motor,serie_motor,capacidad)  values ('".$_POST["ninterno"]."','".$_POST["equipo"]."', '".$_POST["marca"]."', '".$_POST["modelo"]."', '".$_POST["nserie"]."', '".$_POST["ano"]."', '".$_POST["motor"]."', '".$_POST["modelo_motor"]."', '".$_POST["serie_motor"]."', '".$_POST["capacidad"]."')";      
   
mysql_query($Sql,$link); 
   
header("Location: agregar_equipo.php");
   }
?>