close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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 Jason Byrnes | 2833 views | 11 replies |

vvrao007350432

Captcha images do not show up on contact form

on local testing server every thing is ok. on godaddy linux sharing hosting server captch image does not show up on contact form and the image link info is greyed out.. i need this to be addressed as soon as possible...

Sign in to reply to this post

Jason ByrnesWebAssist

can you post a link where i can see the issue please.

Sign in to reply to this post

vvrao007350432

captcha problem link

am using power store 3.01
here is the link
contactus.php

Sign in to reply to this post

Jason ByrnesWebAssist

browasing directly to the page that is supposed to generate the captcha image:
MODERNA_.TTF


it loos like an issue with the free GoDaddy account. Where they are forcing the banner on the top of the page, they are overiding the header call to create the capthaca png image.

you can try renaming:
WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php

to:
WA_ValidationToolkit/WAVT_CaptchaSecurityImages.png


then change the captcha image source:

php:
<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>



to;

php:
<div class="text"><img  src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.png?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>
Sign in to reply to this post

vvrao007350432

which file has this code?

sorry , i could not find which php file has this div tag. can you please give me a clue where to replace? i appreciate

Sign in to reply to this post

Jason ByrnesWebAssist

the contact page:
contactus.php

Sign in to reply to this post

vvrao007350432

still cptcha images do not show up...

yes i renamed to png extension and replaces the div tag. now the link for images is not grayed out. but i can not see the images... could be problem if we plan to have banner ad in general.. so like to address this issue

Sign in to reply to this post

Jason ByrnesWebAssist

well, now if I browse directly to the image file:
MODERNA_.TTF

it shows an error "The image cannot be displayed because it contains errors".


The heart of the issue is that your free go dadddy hosting account is forcing banner adds on your php pages, this is causing the captcha php page "WAVT_CaptchaSecurityImages.png" not to generate the image correctly. I thought we could work around the issue by changing the extension, but apparently not.

It would seam the GoDaddy free Hosting plan will not work with captcha.

Sign in to reply to this post

vvrao007350432

i see the problem...

is there any way i can avoid captch image generation and security code itself.. which lines to be removed. we are okay with SECURITY QUESTION., WE DO NOT NEED CAPTCHA QUESTION IN FACT.. what lines to remark to gracefully solve this problem?

Sign in to reply to this post

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);
Sign in to reply to this post
loading

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