-
Notifications
You must be signed in to change notification settings - Fork 0
/
Update.html
114 lines (106 loc) · 2.76 KB
/
Update.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact Form - PHP/MySQL Demo Code</title>
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
</head>
<body style="text-align:center;" id="body">
<h2 align="center" > INSERT DETAILS </H2>
<button type="button" onclick="changecolor()">
Change Color
</button>
<TABLE ALIGN="center" id="table" >
<script>
function changecolor() {
// Generating random color each time
let color = "#" + (Math.random() * 15555555 | 0).toString(16);
$("body").css("background-color", color);
let colo = "#" + (Math.random() * 11111111 | 0).toString(16);
$("table").css("background-color", colo);
}
</script>
<form action="Update.php" method="post">
<TR>
<TD>
<div>
<label for="fn">FIRST NAME<font color="red">*</font></label>
</td>
<TD>
<input type="text" id="fn" name="fname" required><br><BR>
</div>
</td>
</TR>
<TR>
<TD>
<div>
<label for="ln">
LAST NAME <font color="red">*</font></label>
</TD>
<TD>
<input type="text" id="ln" name="lname" required><br><BR>
</div>
</td>
</TR>
<TR>
<TD>
<div><label for="ln" for="em">
DOB<font color="red">*</font></label>
</TD>
<TD>
<input type="date" id="em" name="email" required><br><BR></div>
</td>
</TR>
<TR>
<TD>
<div>
<label for="pass">
Parent's Name<font color="red">*</font></label>
</TD>
<TD>
<input type="text" id="pass" name="pass" required><br><BR>
</div>
</td>
</TR>
<TR>
<TD>
<div> <label for="M">
Address </label><font color="red">*</font>
</TD>
<TD>
<input type="text" id="M" name="gen" /><BR>
</div>
</td>
</TR>
<TR>
<TD>
<div>
<label for="des">
City</label><font color="red">*</font></TD><TD>
<input type="text" id="des" name="desi" />
</div>
</td>
</TR>
<TR>
<TR>
<TD>
<div><label for="ph">
PHONE<font color="red">*</font> </label>
</TD>
<TD>
<input type="number" id="ph" name="phone" required><br><BR>
</div>
</td>
</TR>
<TD>
<input type="Submit" name="Submit" id="Submit">
</td>
<TD>
<button><a href="CRUD.html" >Menu</a></button>
</td>
</TR>
</form>
</TABLE>
</body>
</html>