-
Notifications
You must be signed in to change notification settings - Fork 0
/
Myform.html
72 lines (59 loc) · 2.06 KB
/
Myform.html
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
72
<!DOCTYPE html>
<html>
<head>
<title>Return Form</title>
<link rel="stylesheet" type="text/css" href="css.css">
<script type="text/javascript">
function check()
{
if((document.f1.name.value=="")||(document.f1.ISBN_no.value=="")||(document.f1.bookID.value=="")||(document.f1.bookname.value=="")||(document.f1.IssueDate.value=="")||(document.f1.ReturnDate.value=="")||(document.f1.FineAmount.value==""))
{
alert("Please enter complete details")
document.f1.name.focus()
}
}
</script>
</head>
<body>
<h2 align="center">Return Form</h2>
<form name='f1' method = "POST">
<table cellpadding="10px" align="center">
<tr>
<td>Name:</td>
<td><input type = "text" name = "name" size="50">
</td>
</tr>
<tr>
<td>ISBN: </td>
<td><input type = "text" name = "ISBN_no" size="50%">
</td>
</tr>
<tr>
<td>Book name: </td>
<td><input type = "text" name = "bookname" size="50%">
</td>
</tr>
<tr>
<td>Book Id: </td>
<td><input type = "text" name = "bookID" size="50%">
</td>
</tr>
<tr>
<td>IssueDate: </td>
<td><input type = 'text' name = "IssueDate" size="50%">
</td>
</tr>
<tr>
<td>Return Date: </td>
<td><input name = "ReturnDate" size="50%">
</td>
</tr>
<tr>
<td>Fine Amount: </td>
<td><input type = "int" name = "FineAmount" size="50%">
</td>
</tr>
</table>
<center><input type = "submit" class="button button1" name = "submit" value = "Submit" onclick="check()"></center>
</body>
</html>