Wednesday 18 July 2012

How to create Form with text fields and a submit button using html


<!DOCTYPE html>
<html>
<body>

<form name="input" action="html_form_action.asp" method="get">
First name: <input type="text" name="FirstName" value="Hari" /><br />
Last name: <input type="text" name="LastName" value="Priya" /><br />
<input type="submit" value="Submit" />
</form>

<p>If you click the "Submit" button, the form-data will be sent to a page called "html_form_action.asp".</p>

</body>
</html>

Result is:



First name:
Last name:
If you click the "Submit" button, the form-data will be sent to a page called "html_form_action.asp".

0 Responses to “How to create Form with text fields and a submit button using html”

Post a Comment