ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old September 4th, 2007, 05:52 PM
xynapse xynapse is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 1 xynapse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 55 sec
Reputation Power: 0
ASP Captcha help

Hello. ASP Newb here. I am trying to get my aspcaptcha extension for dreamweaver to work but I am having some trouble figuring it out. I would show you the dreamweaver extension that I am talking about but I can't post links since new users aren't allowed to do that.

One of the requirements is to have a processform.asp page. Can somebody give me an example of how this would work? As I understand I would have the contact form page with the captcha image. If the correct code is entered it will go to the process form (which is supposed to take all the data from the contact form and email it to me) otherwise it will go to a failed authentication page. Anyone have any examples of a processform.asp?

Excuse me for being a newb. Thanks in advance for any replies.

Reply With Quote
  #2  
Old September 5th, 2007, 01:27 AM
asptips asptips is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: asian
Posts: 386 asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 1 h 26 m 21 sec
Reputation Power: 16
This is for classic newbie alone, don't use classic anymore, this ain't that fast but you might get the idea.

I don't use those fancy stuffs like italized text or adding some hard-to-look backgrounds but you can add it if you like.

processform.asp
Code:
     <fieldset class="pss">
        <legend>Verification Code</legend>
		<p>Please enter the text that you see in the image into the box on the right. You are asked to do this in order to verify that this registration is not being performed by an automated process.</p>
        <input name="verification" id="verification" value="" size="16" type="text" maxlength="6" />
<!--#include file="random.asp" -->		
		<%
dim image_num
randomize
image_num=int(rnd*9)+1 '1 to 10
select case image_num
	case 1
	image_num="#ff00ff"
	case 2
	image_num="#669966"	
	case 3
	image_num="#cccc99"
	case 4
	image_num="#0000ff"
	case 5
	image_num="#993333"	
	case 6
	image_num="#ff6633"	
	case 7
	image_num="#6666cc"	
	case 8
	image_num="#009966"	
	case 9
	image_num="#666666"	
	case 10
	image_num="#000000"								
end select
%>
 <span style="background-color:<%=image_num%>; border:1px solid #000000; font-size:18px; padding:4px 8px; margin-left:150px; color:#ffffff">
<%
'Dimensidon variables
Dim WriteDigitLoopCount 	'Loop counter to display the code
dim randnum
randnum = Randomizer(6)
random_activation = Randomizer(36)

For WriteDigitLoopCount = 1 to Len(randnum)	
Response.Write("  " & Mid(randnum, WriteDigitLoopCount, 1) & " ")	
next
%>
</span><input name="verification2" id="verification2" value="<%=randnum%>" size="16" type="hidden" maxlength="6" />
<input name="random_activation" id="random_activation" value="<%=random_activation%>" size="46" type="hidden" maxlength="6" />
      </fieldset>


random.asp
Code:
<%

Function Randomizer(myLength)

	Const minLength = 4
	Const maxLength = 8
	
	Dim X, Y, strPW
	
	If myLength = 0 Then
		Randomize
		myLength = Int((maxLength * Rnd) + minLength)
	End If

	
	For X = 1 To myLength

		Y = Int((3 * Rnd) + 1) 
		
		Select Case Y
			Case 1

				Randomize
				strPW = strPW & CHR(Int((9 * Rnd) + 48))
			Case 2

				Randomize
				strPW = strPW & CHR(Int((25 * Rnd) + 65))
			Case 3

				Randomize
				strPW = strPW & CHR(Int((25 * Rnd) + 97))

		End Select
	Next
	
	Randomizer = strPW

End Function

%>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > ASP Captcha help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway