-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathadd.html
48 lines (46 loc) · 1.06 KB
/
add.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
<html>
<head>
<title>Add Data</title>
<script type="text/javascript">
function validate() {
if (document.form1.name.value == '') {
alert('Please provide your name');
document.form1.name.focus();
return false;
}
if (document.form1.email.value == '') {
alert('Please provide your email');
document.form1.email.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<a href="index.php">Home</a>
<br/><br/>
<div id="msg"></div>
<!--<form action="add.php" method="post" name="form1" onsubmit = "return(validate());">-->
<form action="add.php" method="post" name="form1" >
<table width="25%" border="0">
<tr>
<td>Name</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>Age</td>
<td><input type="text" name="age"></td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="Submit" value="Add"></td>
</tr>
</table>
</form>
</body>
</html>