Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Active Server Pages error 'ASP 0140'
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedActive Server Pages error 'ASP 0140'

 Post Reply Post Reply
Author
ArtistDan View Drop Down
Newbie
Newbie


Joined: 12 June 2008
Location: Indianapolis
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArtistDan Quote  Post ReplyReply Direct Link To This Post Topic: Active Server Pages error 'ASP 0140'
    Posted: 12 June 2008 at 4:17pm
I just found out about Web Wiz and I've followed the sample directions to test it out on a client's form. But I'm getting an error when placing the code:
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

<!-- Include file for CAPTCHA form processing -->
<!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
at top of the processing web page, which is a ASP that needs to start with:
<%@ Language = vbscript%>

Your example describes placing the comments above the HTML tag. Since there is no such tag in this case, what is to be done?

I've got other clients I'd like to purchase Web Wiz for, but I'd sure like to make sure I can get it to fully function first. Any assistance will be greatly appreciated.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2008 at 4:43pm
You don't catually need the following at the top of your ASP file:-

<%@ Language = vbscript%>

But if you do have this it MUST always be the first thing in the file, so you would instead need to place the CAPTCHA code below this eg:-

<%@ Language = vbscript%>
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
Back to Top
ArtistDan View Drop Down
Newbie
Newbie


Joined: 12 June 2008
Location: Indianapolis
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArtistDan Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2008 at 1:44am
I appreciate the timely reply to my question. Unfortunately your suggestion doesn't work. The opening lines in the processing ASP page are (FormMail v1.3):
<%@ Language = vbscript%>
<%option explicit %>
<%server.scripttimeout = 600 %>

I had tried moving the code below the <%@ Language = vbscript%> before writing here. When the code is placed below:
<%@ Language = vbscript%>
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

I get an error reading:

Microsoft VBScript compilation error '800a0400'
Expected statement
/forms/inspect.asp
, line 7
option explicit
^

Placing the Web Wiz code down another line brings up the Invalid Verification Code page. Placing the code deeper into the processing page lets the form get submitted, but the validation process is skipped of course.I'm hoping there is still hope for getting this fixed.

thanks,
    dc



Edited by ArtistDan - 13 June 2008 at 1:47am
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2008 at 8:27am
You do not need the following lines which can be removed:-

<%@ Language = vbscript%>
<%option explicit %>
Back to Top
ArtistDan View Drop Down
Newbie
Newbie


Joined: 12 June 2008
Location: Indianapolis
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArtistDan Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2008 at 3:21pm
I have deleted the original intro lines of the FormMail code so the processing page (inspect.asp) starts as:
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

<!-- Include file for CAPTCHA form processing -->
<!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->

<%
'------------------------------------------- FORMMAIL V1.3 ------------------------------------------

I have followed each of the seemingly simple steps provided at
http://www.webwiz.net/webwizcaptcha/kb/captcha_basic_install.asp

Each time the form (Inspect_form.asp) is submitted, I get the incorrect CAPTCHA code page. I have not done any customization to the CAPTCHA image.

Any more suggestions?

Code at the top of the form page is:
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
<html>

Code within the form reads:
 <p>
<textarea name="Additional Names" cols="32" rows="3" wrap="PHYSICAL"></textarea>
</p>
<p class="style1 style2">For verification purposes and to help prevent bot spams, please enter the code exactly as you see it in the image below <span class="style3">(Cookies must be enabled)</span>:</p>
<!-- include the Web Wiz CAPTCHA form element -->
<!--#include file="CAPTCHA/CAPTCHA_form_inc.asp" -->
<p align="center">
 <input type="submit" name="Submit" value="Submit">

The CAPTCHA folder resides in the same directory as the form.

Any help will be appreciated. I'd really like to use this product. I would prefer to find out I'm overlooking something that will make me feel really stupid rather than start over with another solution.

thanks,
     dc
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.