<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hola a todos, tengo dudas sobre validacion cliente servidor. <br>En el codigo de abajo tengo una validacion sencilla de un campo no vacio pero en mi codigo es solo del lado del cliente.¿ Como podria hacer para que sea una validacion cliente + servidor?<br><br>Muchas gracias <br><br>Leandro<br><br><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br> "http://www.w3.org/TR/html4/loose.dtd"><br><html><br><head><br><title>Validar </title><br><meta http-equiv="content-type" content="text/html; charset=UTF-8"><br></head><br><br><script type="text/javascript"><br> <br> function validar(){<br> if (document.getElementById("nom").value==""){<br> alert("Debe ingresar datos");<br> return(0);<br> }<br> document.getElementById("f").submit();<br> }<br><br></script><br><br><br><br><body><br><br> <form action="" name="f" id="f" method="post"><br> <input type="text" name="nom" id="nom"><br> <input type="button" name="ok" id="ok" value="si" onClick="javascript:validar()"><br> </form><br></body><br></html><br><br><br>                                            </body>
</html>