submit form using javascript


submit form using javascript   submit form using javascript  submit form using javascript

First name:
Last name:





<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>

Comments

Post a Comment

If you Satisfied , Please Leave a comment

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress