This repository was archived by the owner on Nov 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
125 lines (118 loc) · 3.34 KB
/
Copy pathcontact.html
File metadata and controls
125 lines (118 loc) · 3.34 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>iTechCarolina</title>
<link rel="stylesheet" href="css/foundation.css" />
<script src="js/vendor/modernizr.js"></script>
</head>
<body>
<!-- Start body -->
<div class="row">
<div class="fixed">
<nav class="top-bar" data-topbar data-options="is_hover: false">
<ul class="title-area">
<!--
<li class="name">
<h1><a href="#">iTechCarolina.com</a></h1>
</li>
-->
<li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
</ul>
<section class="top-bar-section">
<ul class="right">
<li class="active">
<a href="#">Home</a>
</li>
<li>
<a href="#">A link to something</a>
</li>
<li class="has-dropdown">
<a href="#">A dropdown</a>
<ul class="dropdown">
<li>
<a href="#">First link in dropdown</a>
</li>
</ul>
</li>
</ul>
</section>
</nav>
</div>
<img src="http://placehold.it/1000x128.png" />
<div class="large-12 columns">
<h2>
Title
</h2>
<!--
<?php
// display form if user has not clicked submit
if (!isset($_POST["submit"])) {
?>
-->
<?php
if(isset($_POST['submit']))
{
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
// message lines should not exceed 70 characters (PHP rule), so wrap it
$message = wordwrap($message, 70);
// send mail
mail("bschooley@hrsm.sc.edu",$subject,$message,"From: $email\r\n");
}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<div class="row">
<div class="large-9 columns">
<div class="panel radius row">
<label>Name</label>
<input type="text" name="name" />
<label>Email (from)</label>
<input type="email" name="email" />
<button type="submit" name="submit" value="Send" class="small-12 radius success button">Send</button>
</div>
</div>
</div>
From: <input type="text" name="from"><br>
Subject: <input type="text" name="subject"><br>
Message: <textarea rows="10" cols="40" name="message"></textarea><br>
<input type="submit" name="submit" value="Send">
</form>
<!--
<?php
} else { // the user has submitted the form
// Check if the "from" input field is filled out
if (isset($_POST["from"])) {
$from = $_POST["from"]; // sender
$subject = $_POST["subject"];
$message = $_POST["message"];
// message lines should not exceed 70 characters (PHP rule), so wrap it
$message = wordwrap($message, 70);
// send mail
mail("webmaster@example.com",$subject,$message,"From: $from\n");
echo "Thank you for sending us feedback";
}
}
?>
-->
</div>
</div>
<hr />
<footer class="row">
<div class="large-12 columns">
<p>
Copyright © 2014 University of South Carolina
</p>
</div>
</footer>
<!-- End body -->
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>