Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Integrate into programmatically built form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedIntegrate into programmatically built form

 Post Reply Post Reply
Author
swcomm View Drop Down
Newbie
Newbie


Joined: 28 August 2003
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote swcomm Quote  Post ReplyReply Direct Link To This Post Topic: Integrate into programmatically built form
    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.
Back to Top
swcomm View Drop Down
Newbie
Newbie


Joined: 28 August 2003
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote swcomm Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
swcomm View Drop Down
Newbie
Newbie


Joined: 28 August 2003
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote swcomm Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.