2009年3月27日星期五

asp函数生成验证码字母---编程爱好者

asp函数生成验证码字母编程爱好者
现在有的网站在注册时都需要填写验证码,有数字的有字母的,还有中文文字的,现在我们通过一个网站叫编程爱好者源代码,如下:
《%
function getrndstr(howlen)
server.ScriptTimeout = 5
dim strlen,strout
strlen=0
strout=""
do while strlen Randomize
rndid=int(rnd * 74)+48
if (rndid>=49 and rndid<=57) or (rndid>=97 and rndid<=122) or (rndid>=65 and rndid<=90) then
strout=strout & chr(rndid)
strlen=strlen+1
end if
loop
getrndstr=strout
end function
%》
在getrndstr(howlen)中howlen是数字,表示长度,可以生成任意唱的字母,本代码来自编程爱好者
编程爱好者是一个共享编程技术的地方,欢迎大家留言

没有评论:

wholesale retail company from china

achinaseller.com is a professional wholesale retail company, having our own factory with 5 years of wholesale retail experience. Achinaseller.com is also cooperating closely with many factories, so the price that we offer to the consumer is directly from the Chinese Factory. Without leaving your home, you could order your own products at achinaseller.com at the lowest price.
We service over 100,000 registered buyers, delivering to virtually every country in the world. Our warehouse and office are staffed by a young team of Chinese and Western staff.
Happy AchinaSeller buyers include frequent wholesale importers, famous ecommerce websites, eBay powersellers, retail shops and startup home import businesses. On a daily basis, we serve corporate buyers, drop-ship experts, home business Moms, and small bussiness wholesaler