submit form using javascript
<script type="text/javascript">
function formSubmit()
{
document.getElementById("formid").submit();
}
</script>
<form id="formid" action="myform.php">
First name: <input type="text" name="fname" /><br />
Last name: <input type="text" name="lname" /><br /><br />
<input type="button" onclick="formSubmit()" value="Submit form" />
</form>
thanx admin nice blog......
ReplyDelete