View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Using captcha get an error

Thread began 8/26/2009 6:00 pm by JBWebWorks | Last modified 8/26/2009 8:23 pm by JBWebWorks | 1077 views | 4 replies

JBWebWorks

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>&nbsp;</p>
<br />
</form>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...