-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainpage.html
116 lines (93 loc) · 4.53 KB
/
mainpage.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
115
116
<!DOCTYPE html>
<html>
<head>
<title>Contact Form</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="Main Page.css">
<script type="text/javascript" src="maskedpassword.js"></script>
<script type="text/javascript" src="displaydetails.js"></script>
<script type="text/javascript" src="mainpage.js"></script>
<body>
<div class="container">
<div class="jumbotron">
<h1>Contact Form</h1>
</div>
<form action="Frontend 91Social.html" method="GET" name="form_data" target="_self" id="my_form">
<div class="info" class="form-group">
<label for="title" class="dropdown-item active">Title: </label>
<select id="title" name="Designation" class="form-control" required>
<option value="Mr">Mr.</option>
<option value="Mrs">Mrs.</option>
<option value="Ms">Ms.</option>
</select>
</div>
<div class="info" class="form-group">
<label for="name">Name: </label>
<input id="name" type="text" name="Name" placeholder="e.g. John" class="form-control"pattern=".{2,}\w" required title="Name must be of the format - first_name last_name">
</div>
<div class="info" class="form-group">
<label for="emailId">Email: </label>
<input id="emailId" type="email" name="Email" placeholder="e.g. [email protected]" class="form-control" required>
</div>
<div id="panel" class="info" class="form-group">
<label for="passkey">Password:</label>
<input type="text" id="txtpwd" name="txtpwd" class="form-control" pattern= .{16,30} required title="Password must be between 8 to 15 characters, i.e. 16 to 30 asterisks."/>
</div>
<div class="info" class="form-group">
<label for="phone">Phone No.: </label>
<input id="phone" type="tel" name="phoneno" pattern="[0-9]{3}[0-9]{3}[0-9]{4}" class="form-control" size="10" required title="Phone No. must be of 10 digits">
</div>
<div class="info" class="form-group">
<label for="address">Address: </label>
<input id="address" type="text" name="address"class="form-control" required title="Address must be in the format - House_No, Street_Name">
<script>
function validCharForStreetAddress(c) {
return ",#-/ !@$%^*(){}|[]\\".indexOf(c) >=0;
}
</script>
</div>
<script>
$(document).ready(function() {
$(document).on('submit', '#my_form', function()
{
// do your things
return false;
});
});
</script>
<div class="info" id="submit">
<button type="submit" class="btn btn-primary btn-lg" onclick="show()">Submit</button>
</div>
</form>
</div>
<div class="container" >
<div class="jumbotron">
<h1>Contact Form Details</h1>
</div>
<div class="info">
<label for="Title">Title: </label>
<span id="Title"></span>
</div>
<div class="info">
<label for="Name">Name: </label>
<span id="Name"></span>
</div>
<div class="info">
<label for="Email">Email: </label>
<span id="Email"></span>
</div>
<div class="info">
<label for="Phone">Phone: </label>
<span id="Phone"></span>
</div>
<div class="info">
<label for="Address">Address: </label>
<span id="Address"></span>
</div>
</div>
</body>
</head>
</html>