Install issue...
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26662
Printed Date: 03 April 2026 at 12:11am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Install issue...
Posted By: hisplaceresort
Subject: Install issue...
Date Posted: 13 December 2008 at 12:12am
|
I truly believe I followed the instructions, but...
My domain is www.testing.hisplaceresort.net
My form is http://www.testing.hisplaceresort.net/form2.asp - www.testing.hisplaceresort.net/form2.asp
My form processor asp file is http://www.testing.hisplaceresort.net/cgi-bin/sendmail.asp - www.testing.hisplaceresort.net/cgi-bin/sendmail.asp
(it is not an actual web page, just an asp file that sends my emails when Submit is clicked...)
My Captcha files are located at http://www.testing.hisplaceresort.net/Captcha - www.testing.hisplaceresort.net/Captcha
My website is at MyHosting.com on Windows 2008 servers running IIS 7
What I did:
1.) on the form2.asp page, I inserted:
<!-- Include file for CAPTCHA configuration --> <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
at the very top of the page.
2.) put the following code where I wanted the Captcha image to come up in my form, on the same form2.asp page:
<!-- include the Web Wiz CAPTCHA form element --> <!--#include file="CAPTCHA/CAPTCHA_form_inc.asp" -->
(The captcha image does show correctly on my form2.asp. And, you can get a new image by clicking the link. so, it's partly working, anyway.)
3.) in the /cgi-bin/sendmail.asp file, I put the following code at the very top:
<!-- Include file for CAPTCHA configuration --> <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
<!-- Include file for CAPTCHA form processing --> <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
4.) put "incorrect.htm" in the captcha configuration file as the page I want to go to if entry is incorrect.
5.) got all files and the entire captcha directory uploaded to my server.
6.) It doesn't work.
Note: I had it partly working. Before adding the code to the sendmail.asp, the captcha image was working on the form. But, no matter what you did, whether you entered anything at all in the captcha field, or if you entered it incorrectly, the form processed as if you had entered the code correctly. (The sendmail.asp file has a Response.redirect to the page ../thankyou.htm, after you fill out the form and click submit.)
Then, realizing that it was my sendmail.asp that was actually my "form Processor", I added the lines of code referenced in #3 above. (I was a little confused on that, thinking my form and my form processor were one in the same, which of course they were not.)
Once I did that, the form doesn't process at all when you click submit. I get the http error. I think this tells me the problem is with the code I put in my sendmail.asp file.
I'm completely stumped. Any suggestions???
------------- Julie
|
Replies:
Posted By: 123Simples
Date Posted: 13 December 2008 at 12:28pm
I think you will find that it is a directory issue since the processing form is actually in your cgi-bin directory (which is outside of your root directory I assume) and therefore it is looking in the wrong place, and hence why it does not find the includes file
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: hisplaceresort
Date Posted: 13 December 2008 at 2:55pm
|
I thought it might be too.
I changed my form2.asp to reference "sendmail.asp" instead of "cgi-bin/sendmail.asp", and then I put a copy of sendmail.asp in the root directory.
I'm still having the same issue.
Any other thoughts?
------------- Julie
|
Posted By: 123Simples
Date Posted: 13 December 2008 at 3:06pm
Can you give me a few moments and I'll try this on one of our test sites
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: hisplaceresort
Date Posted: 13 December 2008 at 3:28pm
|
Please feel free to try anything you want on that testing subdomain. That's what it's for. I have copies of everything on my local machine, and my real website is up, so you can't mess up anything that I couldn't put back.
Thank you!
------------- Julie
|
Posted By: 123Simples
Date Posted: 13 December 2008 at 3:39pm
Okay - what I did was upload the software to my own website and installed and modified the contact form I currently use If you would like to verify it is working - goto: http://www.justcheck.co.uk/contact.asp
and then complete the form and send it Then we can look at what is different on your site 
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: hisplaceresort
Date Posted: 13 December 2008 at 3:43pm
|
OK.
That form worked. I'm assuming from your post that you used my sendmail.asp.
So, what do we look at now?
Thanks!
------------- Julie
|
Posted By: 123Simples
Date Posted: 13 December 2008 at 3:58pm
As you can see (I've blotted out the details) the form processed correctly:

If you had entered say a wrong code you would have been directed to this page: http://www.justcheck.co.uk/contact_fail.asp
Sorry it seems a bit basic but I was rushing 
How I did it - 1. Install Captcha into root directory where you might have your normal folders ie. images, navbuttons whatever, and all your normal webfiles 2. I had a page called contact.asp which had the form on and at the top of that page you put: <%@LANGUAGE="VBSCRIPT" %> <!-- Include file for CAPTCHA configuration --> <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
Your form obviously then goes to say a file called send_email.asp
And at the bottom of your contact form, but within the form itself <!-- include the Web Wiz CAPTCHA form --> <!--#include file="CAPTCHA/CAPTCHA_form_inc.asp" -->
Then on the send_email.asp file at the top
<%@LANGUAGE="VBSCRIPT" %> <!-- Include file for CAPTCHA configuration --> <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" --> <!-- Include file for CAPTCHA form processing --> <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" --> <%
'The line below will prevent the rest of the file from processing if the CAPTCHA code is entered incorrectly 'To use the line below remove the comment (') quote mark from in front of the line If blnCAPTCHAcodeCorrect = False Then Call stopProcess() %>
If you then edit the file in the captcha folder called: CAPTCHA_configuration.asp and see this bit below
'***** This is the name of the page you want users redirected to if CAPTCHA is entered incorrectly ***** 'Place the page to be redirected to between the quote marks below Const strIncorrectCAPTCHApage = ""
In my case I put in between the speech marks Const strIncorrectCAPTCHApage = "/contact_fail.asp"
The / bit shows that the page contact_fail.asp is outside the CAPTCHA folder
I hope that helps Julie. If you have any questions please email or PM me and I can help you out further
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: hisplaceresort
Date Posted: 13 December 2008 at 4:12pm
|
YEAH!!!
You know what it was??? In the sendmail.asp file, you instructed me to put:
<%@LANGUAGE="VBSCRIPT" %> <!-- Include file for CAPTCHA configuration --> <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" --> <!-- Include file for CAPTCHA form processing --> <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" --> <%
On my sendmail.asp, I had the line:
mailto:%@LANGUAGE=VBSCRIPT%20% - %@LANGUAGE="VBSCRIPT" %
BELOW the rest of that code, like this:
<!-- Include file for CAPTCHA configuration --> <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" --> <!-- Include file for CAPTCHA form processing --> <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" --> <%
mailto:%@LANGUAGE=VBSCRIPT%20% - %@LANGUAGE="VBSCRIPT" %
When I changed it, it worked!!!
You rock...
I'd be happy to pay you for helping me.
Julie
------------- Julie
|
Posted By: 123Simples
Date Posted: 13 December 2008 at 4:22pm
Thats cool glad we got you sorted then
Those pesky <> will get you everytime  I'm glad you got it going. If you feel inclined to make a donation, then if you have PayPal, which you probably do, then you can by going to: http://www.justcheck.co.uk/support_us.asp
By the way - your site looks very good
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: hisplaceresort
Date Posted: 13 December 2008 at 4:49pm
|
I actually did have the <>, just had the one line below the others instead of above it. And, apparently, it really DID matter!
I'll make a donation on your site...
Thanks for the compliment on the site. It was my first... I've learned a lot... For me, building this website was kind of like encountering a super massive black hole that sucks in all energy, matter, light...
No matter what I do, it will never be complete!
Now if I can just figure out why the auto centering script on the form2.asp blew up when I added the:
<!-- Include file for CAPTCHA configuration --> <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
(If you noticed, the rest of my website shows up centered on the screen.) I'm going to guess that I need to add those 2 lines BELOW the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
instead of ABOVE it, like I have it now. I'll play with that a little, and if I can't get it, I'll bug you again!
Thanks!
------------- Julie
|
Posted By: 123Simples
Date Posted: 13 December 2008 at 5:05pm
I can't see why the script would effect the page layout, but if you get stuck, just give us a shout 
And I agree - creating websites can be a time consuming "hobby" , and quite often when we learn new things, we will go back and improve our sites. I assume you are doing the captcha to cut down on spam bots, but you can also add in a handy Javascript check which means that certain fields must be completed too
Go back to http://www.justcheck.co.uk/contact.asp - our contact form , refresh your browser and then click submit without filling in any bits - you should get a popup saying what was missed out
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: hisplaceresort
Date Posted: 13 December 2008 at 5:12pm
|
I just tried what I was telling you... and moving those 2 lines below the doctype line fixed the centering problem. form2.asp is now auto-centering again...
Yes, the captcha was for spambots... OMG, do these people not have anything better to do with their time than to drive me crazy??? I only had the form up for 2 days before I started getting the garbage mail.
As far as requiring fields... my guests are SUCH babies! "You already have my contact info on file; I shouldn't have to fill out those fields..." "I only want to go fishing on a particular date... I don't want to fill out the departure date..." SO! NO required fields for them!
Thanks again! I made a donation, too... :-)
------------- Julie
|
Posted By: 123Simples
Date Posted: 13 December 2008 at 5:22pm
Thankyou for making a donation  As for spambots - and agrees that they should be shot
I understand what you are saying about your guests but one good field being worth required is the email address. At least then they have to type something@whatever (and hopefully it is their actual email address) 
But LOL at the other bits about the excuses Send me a picture sometime of your biggest fish 
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: hisplaceresort
Date Posted: 13 December 2008 at 9:33pm
|
OK, OK...
I'll bite on the javascript... Not so much that I need to validate any fields... but I want to know how to validate fields if I ever need to...
Do you have a link to that?
Thanks!
------------- Julie
|
Posted By: Scotty32
Date Posted: 13 December 2008 at 10:50pm
I suspect the reason for your problems may because you have comment tags.
If you put the include (the "<!--#include" part) before any HTML but remove the comment tag ( <!-- Include file for CAPTCHA configuration --> ) it should be fine.
This is because the Doctype should be the first line in the page.
*edit*
For javascripts have a look at http://www.javascriptkit.com - http://www.javascriptkit.com
------------- 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: hisplaceresort
Date Posted: 13 December 2008 at 11:40pm
|
Thank you.
And yes, it was because of the comment tags...
As far as the website you recommended for the javascripts... Jesus, Mary & Joseph! There are about a million there... If it's not too much trouble, could you direct me to the javascript for validating form fields? I couldn't see the forest for the trees there...
Thanks!
------------- Julie
|
Posted By: 123Simples
Date Posted: 14 December 2008 at 10:18am
I'll send you some details by email Julie
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
|