Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Including Captcha Future.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sivrin
Starting Member

3 Posts

Posted - 22 October 2007 :  22:04:34  Show Profile  Visit sivrin's Homepage
Hi Gurus,
I am trying include captcha future to sinitz forum. What i am doing is just keeping n number of images in an array.Randomly generate of the images and making the user to enter the data. I have done client side validation and included the future in post.asp. Untill this point i am successful. But trying to do some server side validation. But doing so stops posting replies or new topic etc. this is my code.

<%
'######Server side validation for Cpatcha starts here

dim str
dim rnd1
str= request.form("UserInput")
rnd1= request.form("RandValue")
session("UserMsg")=request.form("Message")
session("UserSubj")=request.form("Subject")
dim valid
valid = true
dim myArray (10)
myArray(0)="TKRc12"
myArray(1)="6N8133"
myArray(2)="2H15FK"
myArray(3)="7t9t27"
myArray(4)="9pGr2T"
myArray(5)="6tH8p6"
myArray(6)="4K6ed3"
myArray(7)="DkxP44"
myArray(8)="c3ea2W"
myArray(9)="kMA669"
dim i

if str="" then
valid= false
Response.redirect("post.asp")
else
for i = 0 to 9
dim j
j=i+1
if (j= rnd1) then
if (myArray(i)=str)then
valid=true
exit for
else
valid = false
Response.redirect("post.asp")
exit for
end if
end if
next
end if

'######Server side validation for captcha ends here

can any body help me in this since i am new to asp and that too development. What i am trying to do is validating the user data, keeping the user message in session variable and keeping back the user data in the message box when validation fails.

I am running out of energy and time. can anybody give some advise.

Thanks.

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 23 October 2007 :  02:07:55  Show Profile  Visit HuwR's Homepage
try searching for the GateKeeper MOD
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 23 October 2007 :  05:15:07  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Its in my sig.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07