-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
61 lines (51 loc) · 2.8 KB
/
contact.php
File metadata and controls
61 lines (51 loc) · 2.8 KB
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
<?php
// https://code.tutsplus.com/tutorials/create-a-contact-form-in-php--cms-32314
$page_title ='Contact';
$page_description = 'Contact page for freelance web developer Osamu Morozumi';
include 'inc/html_head.php';
include 'inc/header.php';
?>
<main class="contact">
<!-- contact section -->
<div class="content-header">
<p>Please use the contact form to get in touch and I will get back to you as soon as possible</p>
</div>
<div class="outer flex-row contact-outer">
<section class="contact-section">
<form action="process.php" method="post" id="contact-form">
<div class="elem-group">
<label for="name">*Your Name</label>
<input type="text" id="name" name="name" placeholder="John Doe" pattern="[A-Z\sa-z]{3,20}" title="Name should only contain letters and spaces" required>
</div>
<div class="elem-group">
<label for="m77">*Your Email</label>
<input type="email" id="m66" name="m66" placeholder="Your Valid Email*" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" minlength="8" maxlength="255"/>
<input type="email" id="m77" name="m77" placeholder="john.doe@email.com" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" minlength="8" maxlength="255" title="Please provide a valid email address" required>
</div>
<div class="elem-group">
<label for="contact-reason">*Reason for contacting me:</label>
<select id="contact-reason" name="contact-reason">
<option value="business">I would like a website built for my business/organisation</option>
<option value="agency">My design agency requires a freelance developer for contract work</option>
<option value="employer">I would like to recruit you for employment</option>
<option value="general">General enquiry</option>
</select>
</div>
<div class="elem-group">
<label for="message">*Your message</label>
<textarea id="message" name="message" placeholder="Letters, numbers, spaces and punctuation only please" rows="10" minlength="10" maxlength="500" required></textarea>
</div>
<input id="submit" type="submit" value="submit" />
</form>
</section>
<!-- map -->
<section class="contact-section">
<iframe src="https://maps.google.com/maps?hl=en&q=Sunnyside%20way%20Aveley+(Perth%20Custom%20Websites)&ie=UTF8&t=&z=14&iwloc=B&output=embed"></iframe>
</section>
</div>
<div class="sub-footer">
</div>
</main>
<?php
include 'inc/footer.php';
?>