-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
47 lines (36 loc) · 1.25 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
<?php
define('TITLE', 'Contact');
$bodyClass = 'contact-page';
include('header.php');
?>
<?php
$banner = 'banner-4';
$title = 'Contact Us';
include('include/banner_small.php');
?>
<?php
if (isset($_POST['email'])) {
// $to = "edmardausan15@gmail.com";
$to = "edmar@frontside.ml";
$subject = $_POST['subject'];
$msg = $_POST['msg'];
$from = $_POST['email'];
echo '<script>console.log("$from");</script>';
mail($to, $subject, $msg, "From:" . $from);
if(@mail($to, $subject, $msg, $from))
{
echo '<label class="email-notif" id="success">Email Sent! Thank You for Getting in Touch with us!</label>';
} else {
echo '<label class="email-notif" id="failed">Email not sent!</label>';
}
}
?>
<form method="post" class="fs-form" id="contact-form">
<input class="form-text" type="email" name="email" id="" placeholder="email@mail.com" required>
<input class="form-text" type="text" name="subject" id="" placeholder="subject" required>
<textarea class="form-text" name="msg" id="" placeholder="your message" required></textarea>
<button><span>Send</span></button>
</form>
<?php
include('footer.php');
?>