-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontactform.php
74 lines (65 loc) · 3.4 KB
/
contactform.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-171562548-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-171562548-1');
</script>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="3.5;URL='https://alishariatii.com/'" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/contact.css">
<link rel="stylesheet" href="css/small-devices.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> -->
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
<title>Ali Shariati | Web Developer & Designer</title>
<link rel="shortcut icon" type="image/png" href="img/favicon/favicon-256×256.ico">
</head>
<body>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
$name = test_input($_POST['name']);
$phone = test_input($_POST['phone']);
$email = test_input($_POST['email']);
$name = test_input($_POST['subject']);
$name = test_input($_POST['message']);
$mailTo = "[email protected]";
$headers = "From: ".$email;
$body = $name." has sent a message via your portfolio online form."."\n\n"."Sender's contact info:".".\n"."Email: ".$email.".\n"."Phone: ".$phone.".\n"."Message: ".$message;
mail($mailTo, $subject, $body, $headers);
}
function test_input($data){
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
<header id="home-grid">
<div id="header-grid-shade">
<div id="message-grid-item">
<p id="confirmation-mesg">Your message has been received. I'll be in touch soon. ;)</p>
<p id="redirect-mesg" >Click<a href="https://alishariatii.com/"> here</a> if not redirected.</p>
<img src="img/logo.svg" id="logo4" alt="Redirecting in 4 Seconds ...">
</div>
</div>
<img src="img/sky-city-1.png" alt="sky-city" class="sky-city-y-reset" id="sky-city-1">
<img src="img/sky-city-1-1200px.png" alt="sky-city" class="sky-city-y-reset" id="sky-city-1-1200px">
<img src="img/sky-city-1-992px.png" alt="sky-city" class="sky-city-y-reset" id="sky-city-1-992px">
<img src="img/sky-city-1-768px.png" alt="sky-city" class="sky-city-y-reset" id="sky-city-1-768px">
<img src="img/sky-city-1-600px.png" alt="sky-city" class="sky-city-y-reset" id="sky-city-1-600px">
<img src="img/sky-city-1-400px.png" alt="sky-city" class="sky-city-y-reset" id="sky-city-1-400px">
</header>
<!--JS LINKS-->
<script src="js/jquery.js"></script>
<script src="js/main.js"></script>
</body>
</html>