Sunday, 29 June 2014

Html program for form submition


Html program for form submition



<html>
<head>
<title>mypage</title>
<script type="text/javascript">
function check()
{
alert("submited successfully");
}
</script>
</head>
<body>
<form name="f1">
name:    <input type="text" name="name">
<br>
email:   <input type="text" name="email">
<br>
dob:     <input type="date" name="dob">
<br>
gender:  male<input type="radio" name="gender">
         female<input type="radio" name="gender">
<br>
hobbies: <input type="checkbox" name="cricket">cricket
         <input type="checkbox" name="hockey">hockey
<br>
address: <textarea rows="4" cols="20">
</textarea>
<br>
state:   <select name="state">
         <option>ap</option>
         <option>up</option>
         <option>hp</option>
         </select>
<br>
         <input type="submit" value="submit" onClick="return check()">
<br>
         <input type="submit" value="reset">
</form>
</body>
</html>


Output:


No comments:

Post a Comment