Friday, November 23, 2012

Submit Button


<!DOCTYPE html>
<html>
<head>
<script>
function formSubmit()
{
document.getElementById("frm1").submit();
}
</script>
</head>
<body>

<p>Enter some text in the fields below, then press the "Submit form" button to submit the form.</p>

<form id="frm1" action="form_action.asp">
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>

</body>
</html>

OUTPUT:

Enter some text in the fields below, then press the "Submit form" button to submit the form.
First name: 
Last name: 


Input was received as:

fname=murali&lname=sathish

This page was returned to you from the server. The server has processed your input and returned this answer.
It is not a part of this tutorial to teach you how the server is processing this input. If you want to learn more about processing form input, please read our PHP or our ASP tutorial.
Use the back button in the browser to return to the example.


0 comments:

Post a Comment

Thanks For Coming The Page.