-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
55 lines (44 loc) · 1.48 KB
/
index.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
<?php
session_start();
if (empty($_SESSION["mail_success"])) $_SESSION["mail_success"] = false;
if (empty($_SESSION["mail_error"])) $_SESSION["mail_error"] = false;
$success = $_SESSION["mail_success"];
$error = $_SESSION["mail_error"];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Send Mail</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<link rel="stylesheet" href="css/dist/contact.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<section class="section-contact">
<div class="container">
<div class="contact-form">
<h2>Contact us</h2>
<form class="form-box" method="POST" action="email.php">
<div class="input-box w50">
<input type="text" name="name" required>
<span>Name</span>
</div>
<div class="input-box w50">
<input type="text" name="email" required>
<span>E-mail</span>
</div>
<div class="input-box w100">
<textarea name="message" required></textarea>
<span>Write your message here...</span>
</div>
<div class="input-box w100 message">
<?php include 'contact-message.php'; ?>
<input class="button" type="submit" type="reset" value="Send message">
</div>
</div>
</div>
</div>
</section>
</body>
</html>