-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontact-us.php
56 lines (43 loc) · 1.53 KB
/
contact-us.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
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<?php
function error($message){
echo '<div class="alert alert-danger alert-dismissible fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Danger!</strong>'.$message.'.
</div> ';
}
function success($message){
echo ' <div class="alert alert-success alert-dismissible fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Success!</strong>'.$message.'.
</div>';
}
if(isset($_GET)){
if(isset($_GET['message'])&&$_GET['message']=='done'){
success('Email has been sent');
}
if(isset($_GET['message'])&&$_GET['message']=='failed'){
error('Email not sent');
}if(isset($_GET['message'])&&$_GET['message']=='emptyfield'){
error('Fill all input fields');
}if(isset($_GET['message'])&&$_GET['message']=='error'){
error('Please try again Later');
}if(isset($_GET['message'])&&$_GET['message']=='tryagain'){
error('Fill all input fields');
}if(isset($_GET['message'])&&$_GET['message']=='invalidemail'){
error('Invalid email address');
}if(isset($_GET['message'])&&$_GET['message']=='invalidemail'){
error('Invalid email address');
}if(isset($_GET['message'])&&$_GET['message']=='invalidcountry'){
error('Invalid country name');
}if(isset($_GET['message'])&&$_GET['message']=='invalidenames'){
error('Names contain invalid characters');
}
}
?>
</body>
</html>