Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/08/2010, 16:23
Avatar de ylellan
ylellan
 
Fecha de Ingreso: mayo-2010
Ubicación: en un lugar de Veracruz
Mensajes: 432
Antigüedad: 14 años
Puntos: 36
Respuesta: Codigo no inserta datos

corazon yo lo hago comunemnte asi:

Código HTML:
Ver original
  1. function validar(formulario)
  2. {
  3. if(formulario.nombre.value=='')
  4. {
  5. alert("LLENAR CAMPOS NECESARIOS\n-NOMBRE");
  6. formulario.nombre.focus();
  7. return false;
  8. }
  9. return true;
  10. }
  11.  
  12. <form action="guardar.php" method="post" onsubmit="return validar(this)">
  13. Nombre: <input type="text" name="nombre">
  14. <input type="submit" value="Enviar" name="enviar">
  15. </form>

suerte corazon