-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
131 lines (115 loc) · 3.98 KB
/
contact.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<link href="http://fonts.cdnfonts.com/css/dot-matrix" rel="stylesheet">
<style>
form {
background-color: #fff;
padding: 4rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 400px;
background-color:black;
color: green;
display:block;
margin-bottom:2rem;
margin-top:4rem;
position:absolute;
top: 54%;
left: 50%;
transform: translate(-50%, -50%);
}
label {
display: block;
margin-bottom: 8px;
color: green;
}
input, textarea, button {
width: 100%;
padding: 10px;
margin-bottom: 16px;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
border: green solid 2px;
background-color: black;
color:green;
}
textarea {
resize: vertical;
border: green solid 2px;
}
button {
background-color: black;
color: white;
cursor: pointer;
border: green solid 2px;
color:green;
}
button:hover {
background-color: #45a049;
}
</style>
<link rel="stylesheet" href="/stylings.css">
</head>
<body>
<header>
<div class="head_container">
<input type="checkbox" id="ham" class="ham">
<h1>Sanctified <br>Security</h1>
</div>
<label for="ham" class="ham-label toggle">
<span></span>
<span></span>
<span></span>
</label>
</header>
<nav id="menu">
<ul>
<li><a class="nav-a" href="contact.html"> Contact</a></li>
<li><a class="nav-a" href="page_2"> Lab</a></li>
<li><a class="nav-a" href="page_3"> Projects</a></li>
</ul>
</nav>
</div>
<form action="PHPMailer/contact.php" method="post" enctype="multipart/form-data">
<h2>Contact Us</h2>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone Number:</label>
<input type="tel" id="phone" name="phone">
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" required></textarea>
<label for="userfile">Attach Files:</label>
<div id="file-input-container">
<!--<input name="userfile[]" type="file" multiple="multiple">-->
<!-- <br/>-->
</div>
<button type="button" onclick="addFileInput()">Click To Add File</button>
<button type="button" onclick="clearAttachments()">Clear Attachments</button>
<button type="submit">Submit</button>
</form>
<script>
function addFileInput() {
var fileInputContainer = document.getElementById('file-input-container');
var newFileInput = document.createElement('input');
newFileInput.setAttribute('type', 'file');
newFileInput.setAttribute('name', 'userfile[]');
newFileInput.setAttribute('multiple', 'multiple');
fileInputContainer.appendChild(newFileInput);
fileInputContainer.appendChild(document.createElement('br'));
}
function clearAttachments() {
var fileInputContainer = document.getElementById('file-input-container');
fileInputContainer.innerHTML = '';
}
</script>
<script src="app.js"></script>
</body>
</html>