Print Page | Close Window

Integrate into programmatically built form

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26055
Printed Date: 28 March 2026 at 4:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Integrate into programmatically built form
Posted By: swcomm
Subject: Integrate into programmatically built form
Date Posted: 01 August 2008 at 4:11pm
Can this Captcha app be integrated into an ASP programmatically built form?  Here's the spot on on my form where the #include file="CAPTCHA/CAPTCHA_form_inc.asp" would go:
 
     response.write("<p>")
      response.write("<textarea id='comment' name='comment' tabindex='4'></textarea>")
     response.write("</p>")
include file here
     response.write("<input id='submit' name='submit' type='submit' tabindex='5' value='"& ids("Submit") &"' />")
     response.write("<input id='article' name='article' type='hidden' value="""& intDisplay &""" />")
    response.write("</form>")
 
But obviously, simply placing the include file syntax in that spot doesn't work.  Can I even use response.write to include a file?  Thanks.



Replies:
Posted By: swcomm
Date Posted: 01 August 2008 at 4:28pm
Never mind - I figured it out - using server.execute instead of include statement and seems to work fine.  Any problem I'm unaware of in doing it this way?  Thx


Posted By: Scotty32
Date Posted: 01 August 2008 at 5:34pm
If you want to include the captcha file into that section of code just do it like so:

     response.write("<p>")
      response.write("<textarea id='comment' name='comment' tabindex='4'></textarea>")
     response.write("</p>")
%><!--#include file="captcha.asp"--><%
     response.write("<input id='submit' name='submit' type='submit' tabindex='5' value='"& ids("Submit") &"' />")
     response.write("<input id='article' name='article' type='hidden' value="""& intDisplay &""" />")
    response.write("</form>")


Obviously you will need to enter the correct location of the file.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: swcomm
Date Posted: 01 August 2008 at 8:45pm
Oh for heaven's sake - of course!  What a dope I am.
 
Everything is live and working A-OK.  Web Wiz apps are great - they always do what they say they do.  Thanks a bunch



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net