hi,
    here u can do the client side validation using javascript before actually 
submitting the form...below is the sample code

</html>
<head>
<script type="text/javascript">
function xyz()
{
    if(document.formname.fieldname.value == "")
    {
        alert("please enter all mandatory values");
       document.formname.fieldname.focus();
    }else
    {
        document.formname.submit();
    }
}
</script>
</head>


 <form name=form action="newconnectioncontroller" method=post >
 <input type=text name=xyz>
 
 <input type=submit value="submit" onclick="xyz()" >
</html>

i hope this will help..u....

Regards,
Anil 


Dinesh Nidamanuru <[EMAIL PROTECTED]> wrote:                               hi  
 
 I have a small doubt.
 if we have a small piece of  html & java code like below.
 
 <form name=form action="newconnectioncontroller" method=post >
 <input type=text name=xyz>
 
 <input type=submit value="submit" onclick= ??? >
 
 my doubt is..the page should not be redirected to class until we validate the 
feild in the text bar,i.e; we shuld check whether the field is filled up by the 
user or not......
 i am not able to write the code for that.it is a part of my prj...can u help 
me out...!!!!
 
 Its not how you fall, but how you pick yourself up again..  
 
 Regards
 Dinesh.N
 

Reply via email to