close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Captcha images do not show up on contact form

Thread began 11/17/2010 2:46 pm by vvrao007350432 | Last modified 11/23/2010 4:22 pm by vvrao007350432 | 2488 views | 11 replies

Jason ByrnesWebAssist

to remove the captcha and security question, remove the following code blocks:


line 433 - 434:

php:
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur"], minChars:5, maxChars:5});

var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});



line 268 - 409:

php:
<p>

               <div class="text"><img  src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?noisecolor=<?php echo $WAGLOBAL_Captcha_Noise?>&bgcolor=<?php echo $WAGLOBAL_Captcha_BG?>&textcolor=<?php echo $WAGLOBAL_Captcha_Text?>&transparent=<?php echo $WAGLOBAL_Captcha_BG_transparent?>&characters=<?php echo $WAGLOBAL_Captcha_Characters?>&width=<?php echo $WAGLOBAL_Captcha_Width?>&height=<?php echo $WAGLOBAL_Captcha_Height?>&font=<?php echo $WAGLOBAL_Captcha_Font?>" alt="security code" /></div>
            </p>
            <p>
                <label for="Security_code">Security Code:</label>
                        <span id="sprytextfield3">
                            <input name="Security_code" type="text" class="inputValue" id="Security_code" onblur="if (document.getElementById('captchaServerError')) document.getElementById('captchaServerError').style.display='none'" maxlength="40" />
                            <span class="textfieldRequiredMsg">A value is required.</span>
                <span class="textfieldMinCharsMsg">Minimum number of characters not met.</span>
                <span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span>
              </span>
                        <?php
                            
if (ValidatedField("contact","contact"))  {
                                if ((
strpos((",".ValidatedField("contact","contact").","), "," "4" ",") !== false || "4" == ""))  {
                                    if (!(
false))  {
                            
?>
                                    <span id="captchaServerError" class="textfieldServerError">Your security code entry did not match the image.</span>
                                    <?php //WAFV_Conditional contact.php contact(4:)
                                    
}
                                }
                            }
?>
            </p>
            <p>
               <div class="text"><?php require_once("WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?></div>
            </p>
            <p>
                <label for="Security_question">Security Question:</label>
                 <span id="sprytextfield4">
                            <input name="Security_question" type="text" class="inputValue" id="Security_question" onblur="if (document.getElementById('securityServerError')) document.getElementById('securityServerError').style.display='none'" maxlength="40" />
                            <span class="textfieldRequiredMsg">A value is required.</span>
              </span>
                        <?php
                            
if (ValidatedField("contact","contact"))  {
                                if ((
strpos((",".ValidatedField("contact","contact").","), "," "5" ",") !== false || "5" == ""))  {
                                    if (!(
false))  {
                            
?>
                                    <span id="securityServerError" class="textfieldServerError">Your answer was not correct.</span>
                                    <?php //WAFV_Conditional contact.php contact(4:)
                                    
}
                                }
                            }
?>
            </p>



line 27- 28:

php:
$WAFV_Errors .= WAValidateLE(((isset($_POST["Security_code"]))?strtolower($_POST["Security_code"]):"") . "",((isset($_SESSION["captcha_1"]))?strtolower($_SESSION["captcha_1"]):"") . "",true,4);

  $WAFV_Errors .= WAValidateLE(((isset($_POST["Security_code"]))?strtolower($_POST["Security_question"]):"") . "",((isset($_SESSION["random_answer"]))?$_SESSION["random_answer"]:"") . "",true,5);

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...