-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactMe.html
122 lines (100 loc) · 4.37 KB
/
contactMe.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
<!DOCTYPE html>
<html lang = "en">
<!-- Nick Morrow
<!-- Created 12/20/2017 24:19
<!-- Last Updated 07/02/2021 18:05 -->
<head>
<!-- Meta Data -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link rel = "stylesheet" type = "text/css" href = "assets/css/styles.css" />
<title>Nick Morrow - Contact Me</title>
</head>
<body>
<!-- Bootstrap -->
<div class = "container-fluid">
<!-- Wrapper -->
<div id = "wrapper">
<!-- Navigation -->
<nav class = "navbar navbar-expand-md sticky-top shadow bg-success navbar-dark">
<!-- Home | About Me | Projects | Education | Contact -->
<!-- Collapse Toggler -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" href="resume.html">Resume</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="aboutMe.html">About Me</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="projects.html">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="contactMe.html">Contact Me</a>
</li>
</ul>
</div>
</nav>
<!-- body -->
<div id = "body">
<?php
//if "email" variable is filled out, send email
if (isset($_POST['email'])) {
//Email information
$admin_email = "nickgmorrow@gmail.com";
$email = $_POST['email'];
$subject = $_POST['subject'];
$comment = $_POST['comment'];
//send email
if (mail($admin_email, $email, $subject, $comment)) {
//Email response
echo "Thank you for reaching out!";
}
}
//if "email" variable is not filled out, display the form
else {
echo "Something went wrong, go back and try again!";
?>
<form>
<div class="form-group" method="post">
<label for="email">Email address:</label>
<input type="text/email" class="form-control col-sm-6" name="email" id="email" aria-describedby="emailHelp" placeholder="name@example.com">
<!--<small id="emailHelp" class="form-text text-muted">I'll never share your email with anyone else.</small>-->
</div>
<div class="form-group">
<label for="subject">Subject:</label>
<input type="text" class="form-control col-sm-6" name="subject" id="subject" placeholder="Subject">
</div>
<div class="form-group">
<label for="comment">Message:</label>
<textarea class="form-control col-sm-12" name="comment" id="comment" rows="3" placeholder="Leave me a message.."></textarea>
</div>
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</form>
<?php
}
?>
</div> <!-- </Body Div> -->
<!-- Footer -->
<footer class = "p-4 bg-dark text-center shadow align-top" id = "footStyle">
<div class="row">
<div class = "col-sm-12">
<span class="text-muted">Copyright © 2018 Nicholas Glenn Morrow</span><br />
<p class="text-muted">-- Last Updated --<br />July 02, 2021</p> <!-- Update Frequently -->
</div>
</div>
</footer>
</div> <!-- </wrapper> -->
</div> <!-- </container-fluid> -->
<!-- Javascript -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
</body>
</html>