Wednesday 18 July 2012

How to create Form with checkboxes and a submit button using html


<!DOCTYPE html>
<html>
<body>

<form name="input" action="html_form_action.asp" method="get">
<input type="checkbox" name="vehicle" value="Bike" /> I have a hyundai car<br />
<input type="checkbox" name="vehicle" value="Car" /> I have a honda bike
<br /><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:

I have a hyundai car
I have a honda bike

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 checkboxes and a submit button using html”

Post a Comment