Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/12/2006, 06:20
Avatar de skaperna
skaperna
 
Fecha de Ingreso: marzo-2005
Ubicación: Barcelona
Mensajes: 84
Antigüedad: 20 años
Puntos: 1
Re: validacion de formulario no funciona

Prueba a hacer esto:
Código PHP:

function validate_form ( )
{
  
valid true;

  if (
document.myForm.Nombre.value == "" )
  {
      
alert "Please fill in the 'Your Name' box." );
      
valid false;
   }

  if (
document.MyForm.Apellido.value == "" )
  {
     
alert "Please fill in the 'Your Name' box." );
     
valid false;
  }

  return 
valid;


Es decir con solo un return al final de todo...
__________________
La sangre son las lágrimas del alma...