-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
190 lines (162 loc) · 4.82 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>nmCAPTCHA 2 Test Page</title>
<meta name="viewport" content="initial-scale=1">
<meta name="robots" content="noindex,nofollow" />
<style type="text/css">
/* start global page styles */
* {
padding: 0;
margin: 0;
}
html {
background-color: #ccc;
}
body {
font-family: Arial, Helvetica, sans-serif;
max-width: 960px;
/* keeps from getting too large on wide screen */
width: 90%;
/* shrink to fit screen */
margin: auto;
/* center in html element */
background-color: #fff;
padding: 1%;
min-height: 100%;
/* keeps from getting too large on wide screen */
}
p,
div {
margin-bottom: 0.5em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
margin: 10px;
}
h1.masthead {
margin-top: 0;
}
footer {
text-align: center;
clear: both;
/* ride below all items */
}
nav {
text-align: center;
/* centers the nav */
}
nav ul {
list-style: none;
/* removes the bullets */
}
nav ul li {
display: inline-block;
/* makes horizontal, but able to declare margins */
margin: 0 2%;
/* margin left-right, gets smaller as necessary */
}
nav a:hover {
text-decoration: none;
}
div.indent {
width: 90%;
margin: 0 auto;
}
/* end global page styles */
/* start reCAPTCHA styles */
/* writes to small text above reCAPTCHA upon failure */
.dateFeedback {
font-style: italic;
font-size: 70%;
font-weight: bold;
color: #f00;
}
input:required {
border: 1px solid red;
}
input:optional,
textarea:optional {
background-color: #f1f1f1;
border: 1px solid #ccc;
}
input[type="submit"],
input[type="button"] {
background-color: #fff;
border-radius: 4px;
border: solid 1px #ccc;
padding: 0.3em 0.5em;
}
fieldset {
border: 1px solid #ccc;
max-width: 350px;
}
legend {
margin-left: 0.5em;
padding: 0.2em 0.5em;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
}
/* end reCAPTCHA styles */
</style>
<!--[if ltIE9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<header role="banner">
<h1 class="masthead">Our Website</h1>
<nav>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 6</a></li>
</ul>
</nav>
</header>
<main role="main">
<header>
<h3>Contact Us!</h3>
</header>
<p>Inside the source of this file, you can un-comment and test
2 different types of forms:
<div class="indent">
<ul>
<li><b>loadContact('simple.php');</b> - a simple contact form with reCAPTCHA</li>
<li><b>loadContact('multiple.php');</b> - a complex form with reCAPTCHA</li>
</ul>
</div>
</p>
<?php
/*
* Below are 2 different forms to be re-used
*
* Only use one at a time, comment out the other!
*
*/
include 'includes/contact_include.php'; #site keys & code here
$toAddress = "jimenez.isaac.jr@gmail.com"; //place your/your client's email address here
$toName = "Isaac Jimenez"; //place your client's name here
$website = "Contact test"; //place NAME of your client's website
echo loadContact('simple.php'); #demonstrates a simple contact form
//echo loadContact('multiple.php');#demonstrates multiple form elements
?>
</main>
<footer>
<small>© 2013-<?= date('Y') ?>, All Rights Reserved ~
<a href="http://validator.w3.org/check/referer" target="_blank">Valid HTML</a> ~
<a href="http://jigsaw.w3.org/css-validator/check?uri=referer" target="_blank">Valid CSS</a>
</small>
</footer>
<!-- END Footer -->
</body>
</html>