Skip to main content
Inspiring
March 24, 2007
Answered

Captcha Image Not Showing

  • March 24, 2007
  • 1 reply
  • 381 views
Hi, I am generating the Flash forms formypages, One thing i came across is that how do i mange touse the captcha image inside the cfform flashform, It shows no eror but dos not display the image., can anybody had done xperimenting this thing.

the code is like this:

<cfform action="" method="post" enctype="application/x-www-form-urlencoded" name="form1" format="flash" width="400" skin="haloOrange" id="form1" height="450" style="background-color:##FFFFCC; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; table-layout:auto; vertical-align:middle;">
<cfformgroup type="page" label="Add New Link">
<cfinput type="text" name="textfield" required="yes" message="URL Value Required" validate="url" validateat="onsubmit,onserver" label="URL of Website:" size="20" tooltip="URL Valid Value Like http://www.yourdoamin.com" tabindex="1">
<cfinput type="text" name="textfield1" required="yes" message="Title of URL" validate="noblanks" validateat="onsubmit,onserver" label="Title of URL:" size="20" tooltip="Name of the URL" tabindex="2">
<cftextarea required="yes" name="textfield2" label="Description:" validate="noblanks" validateat="OnSubmit,OnServer" message="Description Required" tooltip="Description of the Website Required" tabindex="3" cols="25" rows="4" wrap="virtual"> </cftextarea>
Image Verification: <cfinclude template="captcha.cfm"> <cfoutput> <img src="#easyCaptcha.IMAGE#" border="0" height="100" width="100"/> </cfoutput> <cfinput name="secret" type="text" label="Veriication Code:" required="yes" size="10" message="Image Verification failed" />
<cfinput type="submit" name="submit" value="Add the Link" tabindex="4" validateat="onSubmit"
validate="submitonce">
</cfformgroup>
</cfform>
</body>
    This topic has been closed for replies.
    Correct answer c_wigginton
    I'd suggest moving the include for captcha.cfm above the <cfform tag

    Then try this for including the captcha image in the form.

    <cfformitem type="html" height="100" width="100"><p><img src="#easyCaptcha.Image#"/></p></cfformitem>

    1 reply

    c_wiggintonCorrect answer
    Participating Frequently
    March 26, 2007
    I'd suggest moving the include for captcha.cfm above the <cfform tag

    Then try this for including the captcha image in the form.

    <cfformitem type="html" height="100" width="100"><p><img src="#easyCaptcha.Image#"/></p></cfformitem>