Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/10/2014, 08:12
AndresPal
 
Fecha de Ingreso: febrero-2014
Mensajes: 48
Antigüedad: 11 años
Puntos: 0
Respuesta: Formulario de contacto en php

if (isset($_REQUEST['insertar']))
{


TU CONSULTA INSERTAR VA ACÁ

echo ("<script language='javascript'>
alert ('Datos guardados exitosamente...')
location.href = 'index.php';// AQUÍ PONES LA DIRECCIÓN A DONDE QUIERES QUE SE DIRIJA LUEGO DE INSERTAR EN LA BD Y NO SE PIERDE EL ESTILO
</script>");
}
}
else
{
echo ("<script language='javascript'>
alert ('Debe ingresar todos los datos obligatorios...')
location.href = 'registro.php';AQUÍ LO MISMO, SI LOS DATOS NO ESTÁN COMPLETOS VUELVES A LA PAGINA DONDE ESTÁS REGISTRANDO SIN PERDER EL ESTILO
</script>");
}
}