Ver Mensaje Individual
  #8 (permalink)  
Antiguo 26/11/2010, 10:01
naciostars
 
Fecha de Ingreso: enero-2009
Ubicación: Neiva, Huila
Mensajes: 196
Antigüedad: 15 años, 4 meses
Puntos: 2
Respuesta: validar un campo de texto

haber tienes unos errores...pero no se si fue por que me mandas te el código incompleto...

<html>
<head>
<script type="text/javascript">
function ValidarnEspacio (f)
{
if (f.nombre.value == "")
{
alert("Escriba un nombre.");
f.nombre.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<form method="get" name="forma" onSubmit="return ValidarnEspacio(forma)">
<td><input type="text" name="nombre" value="<?php if (isset ($selec_mod_Aerolineas)){ echo $selec_mod_Aerolineas->fields('nombre');}?>" /></td>
<input type="submit" name="actual" value="Actualizar"/>
</form>
</body>
</html>