forked from mildrenben/webdesignrepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreceiving.php
63 lines (51 loc) · 1.48 KB
/
receiving.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
<html>
<head>
<style>
body {
background: #364359;
text-align: center;
padding-top: 30%;
}
p {
font-size: 30px;
}
p, a {
color: #F2EFE9;
font-family: "Arial", Sans-Serif;
vertical-align: middle;
text-decoration: none;
}
a {
font-size: 24px;
opacity: 1;
-webkit-transition: opacity 0.2s ease-in; /*safari and chrome */
-moz-transition: opacity 0.2s ease-in; /* firefox */
-o-transition: opacity 0.2s ease-in; /* opera */
transiton: opacity 0.2s ease-in;
}
a:hover {
opacity: 0.7;
}
</style>
</head>
<body>
<?php
error_reporting(-1);
if(isset($_POST['submit'])) {
$name = $_POST['name'];
$submit_links = $_POST['submit_links'];
$from_add = "[email protected]";
$to_add = "[email protected]";
$subject = "New Submission arrived!";
$message = 'Name: ' . $name . "\n" . ' Sites: ' . $submit_links;
$headers = 'From: ' . $from_add . "\r\n" .
'Reply-To: ' . $to_add . "\r\n";
mail($to_add, $subject, $message, $headers);
echo '<p>Thanks ' . $name . '!</p>';
} else {
echo "Sorry, you cannot do that from here. Please fill in the form first.";
}
?>
<a href="http://www.webdesignrepo.com">webdesignrepo</a>
</body>
</html>