-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearchPage.php
More file actions
44 lines (37 loc) · 929 Bytes
/
searchPage.php
File metadata and controls
44 lines (37 loc) · 929 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Search Page</title>
</head>
<body>
<header>
</header>
<section>
<form method="post" action="searchAction.php" onsubmit="return checkInsertedData()">
<table border="1" width="450" cellspacing="0" cellpadding="3">
<tr>
<td colspan="2" align="center"><font size="5">Search Contact Data</td>
</tr>
<tr>
<td><font color="red">*</font>Name</td>
<td><input type="text" name="name" id="name"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="search" value="Submit">
<input type="reset" name="reset" value="Rest"></td>
</tr>
</table>
</form>
</section>
</body>
</html>
<script type="text/javascript">
function checkInsertedData(){
if(document.getElementById('name').value == ""){
alert("Please Insert the Name");
document.getElementById('name').focus();
return false;
}
}
</script>