/
kfb_sponsorform2.php
287 lines (229 loc) · 8.45 KB
/
kfb_sponsorform2.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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Kent Food Bank</title>
<meta name="description" content="The Project a Bootstrap-based, Responsive HTML5 Template">
<meta name="author" content="htmlcoder.me">
<!-- Mobile Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="shortcut icon" href="images/favicon.ico">
<!-- Web Fonts -->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:700,400,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=PT+Serif' rel='stylesheet' type='text/css'>
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Font Awesome CSS -->
<link href="fonts/font-awesome/css/font-awesome.css" rel="stylesheet">
<!-- Fontello CSS -->
<link href="fonts/fontello/css/fontello.css" rel="stylesheet">
<!-- Plugins -->
<link href="plugins/magnific-popup/magnific-popup.css" rel="stylesheet">
<link href="css/animations.css" rel="stylesheet">
<link href="plugins/owl-carousel/owl.carousel.css" rel="stylesheet">
<link href="plugins/owl-carousel/owl.transitions.css" rel="stylesheet">
<link href="plugins/hover/hover-min.css" rel="stylesheet">
<!-- the project core CSS file -->
<link href="css/style.css" rel="stylesheet" >
<!-- Color Scheme (In order to change the color scheme, replace the blue.css with the color scheme that you prefer)-->
<link href="css/skins/light_blue.css" rel="stylesheet">
<!-- Custom css -->
<link href="css/custom.css" rel="stylesheet">
<link href='kfb_sytle.css' rel='stylesheet'>
<link rel = "stylesheet" type="text/css" href="kfb_style.css">
<link rel = "stylesheet" type="text/css" href="kfb_vbg.css">
<link rel = "stylesheet" type="text/css" href="neal.css">
<link rel = "stylesheet" type="text/css" href="kandis.css">
</head>
<!-- body classes: -->
<!-- "boxed": boxed layout mode e.g. <body class="boxed"> -->
<!-- "pattern-1 ... pattern-9": background patterns for boxed layout mode e.g. <body class="boxed pattern-1"> -->
<!-- "transparent-header": makes the header transparent and pulls the banner to top -->
<!-- "page-loader-1 ... page-loader-6": add a page loader to the page (more info @components-page-loaders.html) -->
<body class="no-trans ">
<?php
//See if the form has been submitted
if (isset($_POST['submit']))
{
echo "test";
//Create a boolean flag to track validation errors
$isValid = true;
//Check first name
if (validName($_POST['fname']))
{
$fname = $_POST['fname'];
} else {
print "<p>Invalid first name.</p>";
$isValid = false;
}
//Check last name
//Create a boolean flag to track validation errors
$isValid = true;
//Check last name
if (validName($_POST['lname'])) {
$lname = $_POST['lname'];
} else {
print "<p>Invalid last name.</p>";
$isValid = false;
}
//checks for organization input.
if (validName($_POST['organization'])) {
$lname = $_POST['organization'];
} else {
print "<p>Please enter organization.</p>";
$isValid = false;
}
//checks phone number.
if (validName($_POST['phone'])) {
$phone = $_POST['phone'];
} else {
print "<p>Please enter phone number.</p>";
$isValid = false;
}
//checks email.
if (validName($_POST['email'])) {
$email = $_POST['email'];
}
else
{
print "<p>Please enter organization.</p>";
$isValid = false;
}
// checks gold sponsorship level
$gold = "";
if (isset($_POST['gold']) AND validMethod($_POST['gold']))
{
$gold = $_POST['gold'];
}
else
{
print "<p>Please select an option .</p>";
$isValid = false;
}
//checks for silver sponsorship level.
$silver = "";
if (isset($_POST['silver']) AND validMethod($_POST['silver']))
{
$silver = $_POST['silver'];
}
else
{
print "<p>Please select an option .</p>";
$isValid = false;
}
//checks for bronze sponsorship level.
$bronze = "";
if (isset($_POST['bronze']) AND validMethod($_POST['bronze']))
{
$bronze = $_POST['bronze '];
}
else
{
print "<p>Please select an option .</p>";
$isValid = false;
}
//Display summary
if ($isValid)
{
print "Thank you , $fname $lname";
}
//Display address if method is delivery
/* if ($method == "delivery")
{
print "<p>Address:$address </p>";
}
//Display toppings if selected
if ($toppingCount > 0)
{
print "<p>Toppings: " . implode(", ", $toppings) . "</p>";
print "<p>Topping count: $toppingCount</p>";
}
//display crust
if($crust == "thin" OR $crust == "thick" OR $crust == "wheat" OR "$crust == Gluten-free")
{
print"<p>Crust: $crust</p>";
}
//display crust
if($size== "small" OR $size == "medium" OR $size == "large")
{
print"<p>Size: $size</p>";
}
//We're done! Terminate the script.
return;
}
}
end of check for form submission
*/
}
?>
<div class="container">
<div class="row">
<div class ="kfb_form">
<!--- form content starts below this line ---->
<form method="post" action="">
<h1 align="center">kent food bank and Emergency Services </h1>
<fieldset>
<h2 align="center">Sponsorship Form</h2>
<fieldset>
<legend>Gold</legend>
<h5>$3,000 or $250 per month for a year</h5>
<ul id="gold">
<li>Logo and name recognition on printed materials</li>
<li>Logo and name recognition in annual report</li>
<li>Logo and name recognition on our Facebook page</li>
<li>Verbal recognition day of event </li>
<li>Verbal recognition day of event </li>
<li>Certificate of Appreciation </li>
</ul>
<input type="radio" name="gold" value="year"> One time payement of 3,000<br>
<input type="radio" name="gold" value="month">$250 per month <br>
</fieldset><br>
<fieldset>
<legend>Silver</legend>
<h5>$1,500 or $125 per month for a year</h5>
<ul id="silver">
<li>Logo and name recognition on printed materials</li>
<li>Name recogntion in annual report</li>
<li>Logo and name recognition on our Facebook page</li>
<li>Verbal recognition day of event</li>
<li>Each table of Honor guest will receive 3 raffle tickets</li>
</ul>
<input type="radio" name="silver" value="year"> One time payment of 1,500<br>
<input type="radio" name="silver" value="month">$125 per month <br>
</fieldset><br>
<fieldset>
<legend>Bronze</legend>
<h5>$1,000 or $85 per month for a year </h5>
<ul id="silver">
<li>Name recognition on printed materials </li>
<li>Name recogntion in annual report</li>
<li>Name recognition on our Facebook page</li>
<li>Verbal recognition day of event</li>
<li>Table of Honor at event</li>
</ul>
<input type="radio" name="bronze" value="year"> One time payment of 1,000 <br>
<input type="radio" name="bronze" value="month">$85 per month <br>
</fieldset><br>
<fieldset>
<legend>Contact Information</legend><br>
First <br><input type="text" size="20" maxlength="100" name="fname" id="fname">  <br><br>
Last <br><input type="text" size="20" maxlength="100" name="lname" id="lname">  <br><br>
Business/Organiztion <br><input type="text" size="20" maxlength="100" name="organization" id="organization"><br><br>
Phone <br><input type="text" size="20" maxlength="20" name="phone" id="phone"><br><br>
Email <br><input type="text" size="20" maxlength="100" name="email" id="email"><br><br>
<p><input type="submit" id="submit" name="submit" value="Submit" /></p>
</fieldset>
</fieldset>
</form>
<!--- form content ends above this line ---->
</div>
</div> <!-- row end -->
</div> <!-- container end -->
</body>
</html>