This is the contact form bcpba.org/contact.php
<form action="varify.php" method="post" class="style8" id="BCPBA Contact Us Form">
<p>
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_
<!-- STEP 2: Put your email address in the 'recipients' value.
Note that you also have to allow this email address in the
$TARGET_EMAIL setting within formmail.php!
-->
<input type="hidden" name="recipients" value="lindaW5XLZS3Bbcpba.
<!-- STEP 3: Specify required fields in the 'required' value -->
<input type="hidden" name="required" value="email:Your email address,realname:Your name" />
<!-- STEP 4: Put your subject line in the 'subject' value. -->
<input type="hidden" name="subject" value="BCPBA Website Contact Us Form" />
</p>
<table width="368" border="0">
<tr>
<td><span class="style6 style7"><strong>Name</strong></s
<td><input name="realname" type="text" size="30" />
</span></td>
</tr>
<tr>
<td><span class="style18 style17 style6 style7"><strong>Email </strong></span></td>
<td><span class="style14">
<input name="email" type="text" size="30" />
</span></td>
</tr>
<tr>
<td><span class="style18 style17 style6 style7"><strong>Company / Station</strong></span></td>
<td><span class="style14">
<input name="Company or Station" type="text" id="testfield" size="30" />
</span></td>
</tr>
<tr>
<td><span class="style18 style17 style6 style7"><strong>Address</stron
<td><span class="style14">
<input name="Address" type="text" id="text" size="30" />
</span></td>
</tr>
<tr>
<td><span class="style18 style17 style6 style7"><strong>City</strong></s
<td><span class="style14">
<input name="City" type="text" id="text" size="30" />
</span></td>
</tr>
<tr>
<td><span class="style18 style17 style6 style7"><strong>State</strong></
<td><span class="style14">
<input name="State" type="text" id="text" size="5" />
</span></td>
</tr>
<tr>
<td><p class="style18 style17 style16 style6 style7"><strong>Zip </strong></p></td>
<td><span class="style16">
<input name="Zip" type="text" id="text" size="30" />
</span></td>
</tr>
</table>
<p class="style14 style6 style7">I<strong> would like (<em>check all that apply</em>) </strong></p>
<p class="style5">
<input type="checkbox" name="Checkbox1" value="Membership Information" />
Membership information sent to me <br />
<input type="checkbox" name="Checkbox2" value="Participate or Support in some way other than membership" />
Participate or support in some way other than membership
<label><br />
<input type="checkbox" name="Checkbox3" value="I have a question answered?" />
</label>
Have a question answered (see below)<br />
<label>
<input type="checkbox" name="Checkbox4" value="Address change (type previous address below)" />
</label>
Address change (type previous address below)</p>
<p class="style5"><br />
<label>
<input type="checkbox" name="Checkbox5" value="Other (see below)" />
</label>
Other (see below)</p>
<p class="style14 style6 style7"><strong>Comments</stro
<p class="style14 style11">
<textarea name="mesg" rows="10" cols="50"></textarea>
</p>
<p class="style14 style11"> </p>
<!-- Start of Varification Code. -->
<?php
require_once('recaptchalib
$publickey = "KEY LEFT OUT FOR SECURITY"; // you got this from the signup page
echo recaptcha_get_html($public
?>
<input type="submit" />
</form>
<!-- End of Varification Code. -->
This is the varify.php code
<?php
require_once('recaptchalib
$privatekey = "XXXXXXXILEFT MY KEY OUT FOR SECURITY";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challeng
$_POST["recaptcha_response
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
}
?>
Main Topics
Browse All Topics





by: mplungjanPosted on 2009-08-07 at 10:12:31ID: 25044933
And?
varify.php shows nothing
Hard to help without seeing the actual code