Thanks Jason
i think it is because the page and the contactus page(from captcha) are in different folders. i have tried to adjust the paths
//here is the full error
Parse error: syntax error, unexpected $end in C:\vhosts\pcogolf\homepage\sponsors.php on line 282
//page code
<?php require_once('../WA_Globals/WA_Globals.php');?>
<?php require_once("../WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("../WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "";
$_SESSION['WAVT_contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateLE(((isset($_POST["Security_question"]))?strtolower($_POST["Security_question"]):"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,5);
$WAFV_Errors .= WAValidateRX(((isset($_POST["addblock"]))?$_POST["addblock"]:"") . "","/^$/i",false,6);
$WAFV_Errors .= WAValidateRX(((isset($_POST["seconddblock"]))?$_POST["seconddblock"]:"") . "","/^$/i",false,7);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}
}
?>
<p><h2>To make a Donation to Panhandle Charitable Open<br />
Security by PayPal</h2>*required information
<input name="addblock" type="text" id="addblock" style="display:none" value="" />
<input name="seconddblock" id="seconddblock" type="text" style="display:none" value="" />
<form method="POST" enctype="application/x-www-form-urlencoded" name="donation1" id="donation1" action="">
<p>Your Name or Organization
<input name="name1" type="text" id="name1" value="" size="30" maxlength="75" />
*</p>
<p>Donation Amount
<input name="amount1" type="text" id="amount1" value="" size="30" maxlength="15" />
* <br />
<br />
<label for="Security_code" >
<?php require_once("../WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?>
</label>
<br />
<input name="Security_question" type="text" class="inputValue" id="Security_question" size="30" maxlength="40" />
<br />
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "5" . ",") !== false || "5" == "")) {
if (!(false)) {
?>
<span class="style6">* Your answer was not correct.</span><br />
</p>
<p>
<input name="donate1" type="submit" id="donate1" value="Make a Donation" />
</p>
<p> </p>
<br />
</form>