-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathform1print.html
More file actions
71 lines (58 loc) · 2.02 KB
/
form1print.html
File metadata and controls
71 lines (58 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<html>
<head>
<link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
<meta charset=utf-8 />
<title>Form1</title>
<h1>Biodata Form</h1>
<style>
img{max-width:60px;
max-height:80px;}
</style>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#kar')
.attr('src', e.target.result)
.width(150)
.height(200);
$('#bla')
.attr('src', e.target.result)
.width(450)
.height(200);
};
reader.readAsDataURL(input.files[0]);
}
}
</script>
</head>
<body style=border-style:solid align="center">
<br><br>
<form action="form2print.html" method="get">
Name:<input type="text" name="name"><br><br>
DOB:<input type="date" name="DOB"><br><br>
Photo:
<input type='file' onchange="readURL(this);" />
<!--<img id="kar" src="#" alt="your image" />--><br>
<img id="bla" alt="Image" src="#" width="4" height="4"> <br><br>
Password:<input type="password" name="pwd" ><br><br>
<form>
Gender:
<input type="radio" name="Gender" value="male" >Male
<input type="radio" name="Gender" value="female" >Female
<input type="radio" name="Gender" value="transgender" >Transgender<br><br>
</form>
<form>
Hobbies:
<input type="checkbox" name="hobby" value="Programming">Programming
<input type="checkbox" name="hobby" value="Devloping">Devloping<br><br>
</form>
<input type="submit" value="submit">
</form>
<a href="./test2.html">proceed</a>
</body>
</html>