This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
executable file
·177 lines (131 loc) · 5.86 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!Doctype html>
<style>
</style>
<html>
<head>
<title> contact us page - contact </title>
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<header>
<!--- this is my logo -->
<img src="images/logo.gif" width="15%" height="15%" alt="Coding Logo" />
<!--this is the end of my logo-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<body>
<!-- Full-screen menu overlay -->
<div id="myNav" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div class="overlay-content">
<li> <a href="index.html"> Home </a> </li>
<li> <a href="about.html"> About </a> </li>
<li> <a href="Skills.html"> Skills </a> </li>
<li> <a href="contact.html"> Contact Us </a> </li>
<li> <a href="hobbies.html"> Hobbies </a> </li>
</div>
</div>
<!-- Button to open the full-screen menu overlay -->
<button class="open-button" onclick="openNav()">Open Menu → </button>
<script>
function openNav() {
document.getElementById("myNav").style.width = "100%";
}
function closeNav() {
document.getElementById("myNav").style.width = "0%";
}
</script>
</header>
<main>
<center>
<div class="Coding banner">
<h1> Contact Us page </h1>
<marquee behavior="Slide" direction="left" bgcolor="05FCF4" scrollamount="25" loop="1000"> Welcome to my
website </marquee>
<img src="images/CodingBanner.gif" width="75%" height="20%" alt="Coding banner" />
</div>
<fieldset>
<form action="process_form.php" method="POST">
<br>
<legend>Contact Form </legend>
<br>
<label> Name </label>
<input type="text" placeholder="enter your full">
<br>
<label> Email </label>
<input type="email" placeholder="enter your email">
<br>
<br>
<label> Password </label>
<br> <input type="password" placeholder="enter your password">
<br>
<br>
<label> Gender </label>
<br>
<br> <input type="radio" name="gender"> male <br>
<br> <input type="radio" name="gender"> female <br>
<br> <input type="radio" name="gender"> Prefer not to say <br>
<br>
<label> Are you a Jedi or a civilian </label>
<br>
<br> <input type="radio" name="Jedi"> Jedi <br>
<br> <input type="radio" name="civilian"> Civilian <br>
<br>
<div class="popup" onclick="myFunction()">If you are a jedi then click me!
<span class="popuptext" id="myPopup">Execute Order 66!</span>
</div> <br>
<script>
// When the user clicks on <div>, open the popup
function myFunction() {
var popup = document.getElementById("myPopup");
popup.classList.toggle("show");
}
</script>
<br> <label> Type of computer </label> <br>
<br><input type="checkbox"> I have a laptop <br>
<br><input type="checkbox"> I have a desktop <br>
<br><input type="checkbox"> Tablet <br>
<br> <label> Age </label>
<select>
<option> 0 - 20 </option>
<option> 20 - 40 </option>
<option> 40 - 60 </option>
<option> 60+ </option>
<br>
</select>
<br><br> <label> Send message </label> <br>
<br>
<textarea< rows="15" cols="50"> </textarea> <br>
<input type="submit" value="send">
<?php
if ($_SERVER["REQUEST_METHOD"] == "send")
{
$name = $_send["name"];
$email = $_send["email"];
$Age= $_send["message"];
$type_of_computer =$_send["message"];
$to = "[email protected]";
$subject = "Contact Form Submission from $name";
$messageBody = "Name: $name\nEmail: $email\n\n$message";
$headers = "From: $email";
if (mail($to, $subject, $messageBody, $headers)) {
echo "Email sent successfully. Thank you!";
} else {
echo "Email sending failed. Please try again later.";
}
}
?>
<input type="reset" value="clear">
</form>
</fieldset>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<br>
<footer>
<a href="https://mail.google.com/mail/u/0/#inbox?compose=DmwnWrRmTNrBPmVcxTddVXTMltqPfsMfzkFLJCrdXThHngbMtXxTvdfMNzZxdrbvbVfFpGQNrCml"
class="fa fa-google"></a>
<a href="https://www.linkedin.com/in/ryan-hill-6ab997241/" class="fa fa-linkedin"></a>
<a href="https://twitter.com/BizAccountRyan" class="fa fa-twitter"></a>
</footer>
<br>
</center>
</body>