-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.php
executable file
·154 lines (127 loc) · 3.92 KB
/
example.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
<?php
include '_variables.php';
?>
<script src='https://www.google.com/recaptcha/api.js'></script>
<style type="text/css">
fieldset {
padding: 1em;
font:80%/1 sans-serif;
}
legend {
font-size: 18px;
font-weight: bold;
}
label {
float:left;
width:25%;
margin-right:0.5em;
padding-top:0.2em;
text-align:right;
font-weight:bold;
}
input[type=text]{
font: 14px/1.25 "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
border-radius:4px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
box-shadow:0 3px 4px #ddd;
-moz-box-shadow:0 3px 4px #ddd;
-webkit-box-shadow:0 3px 4px #ddd;
background: white;
border:1px solid #aaa;
color:#555555;
padding:6px;
margin-bottom: 4px;
}
input[type=password]{
font: 14px/1.25 "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
border-radius:4px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
box-shadow:0 3px 4px #ddd;
-moz-box-shadow:0 3px 4px #ddd;
-webkit-box-shadow:0 3px 4px #ddd;
background: white;
border:1px solid #aaa;
color:#555555;
padding:6px;
}
select{
font: 14px/1.25 "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
border-radius:4px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
box-shadow:0 3px 4px #ddd;
-moz-box-shadow:0 3px 4px #ddd;
-webkit-box-shadow:0 3px 4px #ddd;
background: white;
border:1px solid #aaa;
color:#555555;
padding:6px;
}
select[multiple] {
background: #fff;
}
textarea {
font: 14px/1.25 "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
overflow: visible;
height: 16em;
padding:6px;
}
.btn {
text-align: left;
font: 16px/16px "agb" , Arial , Helvetica , sans-serif;
font-weight: normal;
color: black;
cursor: pointer;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc', endColorstr='#f0f0f0'); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#f0f0f0)); /* for webkit browsers */
background: -moz-linear-gradient(top, #fcfcfc, #f0f0f0); /* for firefox 3.6+ */
border: 2px solid #e6e6e6;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.btn:hover {
background: #e6e6e6;
border: 2px solid #E6722E;
}
.error {
color: red;
}
</style>
<?php
echo !empty($cSuccess) ? '<div class="success">' . $cSuccess . '</div>' : false;
echo !empty($cError) ? '<div class="error">' . $cError . '</div>' : false;
if ( $_SERVER['REQUEST_METHOD'] == 'GET' || !empty($_POST))
{
if (empty($cSuccess)) {
?>
<form action="" method="POST" id="foonster" name="foonster" enctype="multipart/form-data">
<fieldset>
<legend>Contact Form</legend>
<label for="name">Name:</label>
<input type="text" name="name" id="name" value="<?=$_POST['name'] ?>"/><br />
<label for="email">Email:</label>
<input type="text" name="email" id="email" value="<?=$_POST['email'] ?>"/><br />
<label for="address">Address:</label>
<input type="text" name="address" id="address" value="<?=$_POST['address'] ?>"/><br />
<label for="city">City:</label>
<input type="text" name="city" id="city" value="<?=$_POST['city'] ?>"/><br />
<label for="state">State:</label>
<input type="text" name="state" id="state" value="<?=$_POST['state'] ?>"/><br />
<label for="postal_code">Postal Code:</label>
<input type="text" name="postal_code" id="postal_code" value="<?=$_POST['postal_code'] ?>"/><br />
<label for="phone">Phone:</label>
<input type="text" name="phone" id="phone" value="<?=$_POST['phone'] ?>"/><br />
<label for="msg">Message:</label>
<textarea name="msg"><?=$_POST['msg'] ?></textarea><br />
<label for="fupd_1">File:</label>
<input type="file" name="fupd_1" id="fupd_1"/><p />
<div class="g-recaptcha" data-sitekey="<?= $postman['google']['site_key'] ?>"></div>
<input type="submit" name="sbmtbtn" id="sbmtbtn" value="Send Form" class="btn">
</fieldset>
</form>
<?php
}
}