|
-
Dec 8th, 2008, 07:52 PM
#5
Thread Starter
Fanatic Member
Re: How can i use a captcha on my page
 Originally Posted by knxrb
Here's what I use, it's not very secure at all!
1) Code:
<%
Dim strCaptcha, pChar, pCount
pChar = "0123456789"
pCount = Len(pChar)
Randomize
For i = 1 To 5
strNumber = Mid(pChar, 1 + Int(Rnd * pCount), 1 )
strCaptcha = strCaptcha & strNumber
response.write("<img src='images/numbers/" & strNumber & ".gif' />")
Next
session("captcha")=strCaptcha
%>
With your coding i am getting output like this.

How can i fix this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|