Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Captcha in ASP
Author:
Oasitech
E-mail:
Click to e-mail author
Website:
http://www.oasitech.it
Submitted:
5/21/2012
Version:
ASP
Compatibility:
ASP3.0
Category:
ASP
Views:
8352
A captcha in ASP using Random questions.
Declarations:
Captcha in ASP with random question. The enter must be in integer number.
Code:
The file Default.asp <% dim d d = Date() dim arr(2, 3) arr(0, 0) =("What is Current Year") arr(0, 1) = ("What is Current Month") arr(0, 2) = ("What is Current Day") arr(1, 0) = Year(d) arr(1, 1) = Month(d) arr(1, 2) = Day(d) dim nrdom nrdom = numrandom() Response.Write(arr(0, nrdom)) Session("ris") = arr(1, nrdom) %>
The file elab.asp <% dim r r = Request.Form("risposta") if r=Cstr(Session("ris")) then Response.Write("Right") else Response.Write("Error!") Response.Write(r) end if %>
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement