-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.php
152 lines (130 loc) · 6.03 KB
/
contact.php
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
<?php
require_once 'assets/config/config.php';
require_once "vendor/autoload.php";
use PhotoTech\{
ErrorHandler,
Database,
};
$errorHandler = new ErrorHandler();
// Register the exception handler method
set_exception_handler([$errorHandler, 'handleException']);
$database = new Database();
$pdo = $database->createPDO();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=yes, initial-scale=1.0">
<title>Contact Form</title>
<link rel="stylesheet" media="all" href="assets/css/stylesheet.css">
</head>
<body class="site">
<header class="nav">
<input type="checkbox" class="nav-btn" id="nav-btn">
<label for="nav-btn">
<span></span>
<span></span>
<span></span>
</label>
<nav class="nav-links" id="nav-links">
<?php $database->regular_navigation(); ?>
</nav>
<div class="name-website">
<h1 class="webtitle">The Photo Tech Guru</h1>
</div>
</header>
<main class="content">
<div class="main_container">
<div class="home_article">
<form class="contact" name="contact" action="contact.php" method="post" autocomplete="on">
<!-- <input id="token" type="hidden" name="token" value="--><!--">-->
<input type="hidden" name="reason" value="message">
<figure class="owner">
<img src="assets/images/img-john-pepp-150-150-001.jpg" alt="John Pepp" width="150" height="150">
<figcaption>John Pepp</figcaption>
</figure>
<hr class="horizontal_line">
<div class="contact_name">
<label class="labelstyle" for="name" accesskey="U">Contact Name</label>
<input name="name" type="text" id="name" tabindex="1" placeholder="Full Name" autofocus
required="required">
</div>
<div class="contact_email">
<label class="labelstyle" for="email" accesskey="E">Email</label>
<input name="email" type="email" id="email" placeholder="Email" tabindex="2" required="required">
</div>
<div class="contact_phone">
<label class="labelstyle" for="phone" accesskey="P">Phone <small>(optional)</small></label>
<input name="phone" type="tel" id="phone" tabindex="3">
</div>
<div class="contact_website">
<label class="labelstyle" for="web" accesskey="W">Website <small>(optional)</small></label>
<input name="website" type="text" id="web" tabindex="4">
</div>
<div class="contact_comment">
<label class="textareaLabel" for="comments">Comments Length:<span id="length"></span></label>
<textarea name="comments" id="comments" spellcheck="true" placeholder="Your Message" tabindex="6"
required="required"></textarea>
</div>
<div id="recaptcha" class="g-recaptcha" data-sitekey="6Le0QrobAAAAAGDacgiAr1UbkPmj0i-LFyWXocfg"
data-callback="correctCaptcha"></div>
<div id="message">
<img class="notice" src="assets/images/email.png" alt="email icon">
<img class="pen" src="assets/images/fountain-pen-close-up.png" alt="fountain pen">
</div>
<button id="submitForm" class="submit_comment" type="submit" name="submit" value="Submit" tabindex="7"
data-response="">Submit
</button>
<!-- Use a data callback function that Google provides -->
</form>
</div>
<div class="home_sidebar">
<div id="successMessage" class="successStyle" style="display: none;">Your email has been sent successfully!</div>
<ul class="cards">
<li class="card-item">
<a href="https://flickr.com/photos/pepster/">
<figure class="cards">
<img src="assets/images/img_flickr_pictures.jpg" alt="Flickr" width="348" height="174">
<figcaption class="caption">
<h3 class="caption-title">Flickr Images</h3>
</figcaption>
</figure>
</a>
</li>
<li class="card-item">
<a href="https://github.com/Strider64/phototechguru">
<figure class="cards">
<img src="assets/images/img_github_repository.jpg" alt="GitHub Repository">
<figcaption class="caption">
<h3 class="caption-title">GitHub Repository</h3>
</figcaption>
</figure>
</a>
</li>
<li class="card-item">
<a href="https://www.facebook.com/Pepster64">
<figure class="cards">
<img src="assets/images/img-facebook-group.jpg" alt="FaceBook Group">
<figcaption class="caption">
<h3 class="caption-title">Facebook Page</h3>
</figcaption>
</figure>
</a>
</li>
</ul>
</div>
</div>
</main>
<div class="sidebar">
</div>
<footer class="colophon">
<p>© <?php echo date("Y") ?> The Photo Tech Guru - <span class="freepik_icons">Icons made by <a
href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/"
title="Flaticon">www.flaticon.com</a></span>
</p>
</footer>
<script src="assets/js/contact.js"></script>
</body>
</html>