Posted by Umesh on 02/24/06 12:03
Hi
Here is the sample code for my form, but problem is that it submits
twice in some cases when i click submit button.
<script>
function validateform (){
//do a lot validation here, if validation failes, return false;
//finaly this line
return true;
}
</script>
<form name="abc" action="any other apge" onsubmit = "return
validateform();">
<input type="submit" name="save" id="save" value="save">
</form>
Can any one help me?
[Back to original message]
|