-
Notifications
You must be signed in to change notification settings - Fork 0
/
formdatas.ejs
100 lines (95 loc) · 3.28 KB
/
formdatas.ejs
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
<html>
<head>
<title>Codingmart</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body{
background-color: whitesmoke;
}
.middle{
width: 800px;
margin: 0 auto;
background-color: white;
}
.header{
background-color:#1b6ca8;
padding: 30px;
text-align: center;
font-size: 30px;
opacity: 0.7;
color: white;
letter-spacing: 2px;
}
.email{
text-align: center;
font-size: larger;
padding: 20px;
}
input[type=submit] {
color: white;
font-weight: bold;
background-color:#1b6ca8;
opacity: 0.9;
padding: 15px 25px;
font-size: 15px;
border: none;
}
input[type=submit]:hover{
opacity: 1;
}
input[type=text]{
padding: 10px;
}
input[type=tel]{
padding: 10px;
}
input[type=email]{
padding: 10px;
}
.user{
text-align: center;
padding-top: 30px;
letter-spacing: 1px;
opacity: 0.8;
}
.copy{
background-color: #1b6ca8;
padding: 5px;
color: white;
text-align: center;
}
.hint{
background-color:#ffaaa5;
color: white;
opacity: 0.8;
text-align: center;
letter-spacing: 1px;
}
</style>
</head>
<body>
<div class="middle">
<div class="header">CODINGMART</div>
<div class="hint">HINT:- The Form data will be inserted into a mysql database.</div>
<div class="user"> ENTER USER CREDENTIALS</div>
<form action="/home" method="POST">
<div class="email">
<input type="email" name="email" placeholder="E-MAIL" size="50" required pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
</div>
<div class="email">
<input type="text" name="address"placeholder="ADDRESS" size="50" required>
</div>
<div class="email">
<input type="text" name="name" placeholder="NAME" size="50" required>
</div>
<div class="email">
<input type="tel" name="phone" placeholder="MOBILE" size="50" required pattern="[1-9]{1}[0-9]{9}">
</div>
<div class="email">
<input type="submit">
</div>
</form>
<div class="copy">© codingmart.com</div>
</div>
</body>
</html>