forked from SaqlainHussainShah/fyp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactus.php
More file actions
59 lines (59 loc) · 1.75 KB
/
contactus.php
File metadata and controls
59 lines (59 loc) · 1.75 KB
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
<?php
if (isset($_POST['message'])) {
$from=$_POST['from'];
$name=$_POST['name'];
$message=$_POST['message'];
$subject="FRom ". $name . $from;
header('Location: index.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>
Forms
</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="custom-css.css">
<style type="text/css">
*{
background-color:gray;
}
</style>
</head>
<body>
<div class="form-container">
<div class="no-results">
<div class="form-vertical-align ">
<div class="row col-md-6" id="form-mid">
<?php
if (isset($_SESSION['flash_message'])) {
echo $_SESSION['flash_message'];
unset($_SESSION['flash_message']);
}
?>
<h1> Send us Feedback <br> </h1>
<form action="" method="post">
<div class="form-group">
<label for="email">Email</label>
<input type="email" class="form-control" id="email" name="from">
</div>
<div class="form-group">
<label for="pwd">Name:</label>
<input type="text" class="form-control" id="pwd" name="name">
</div>
<div class="form-group">
<label>Message</label>
<textarea class="form-control" name="message"></textarea>
</div>
<button type="submit" name="submit" class="btn btn-primary" > Send message </button>
  <a type="button" name="submit" class="btn btn-danger" href="../index.php" > cancel </a>
</form>
</div>
</div>
</div>
</div>
</body>
</html>