通行证: 用户 密码
域名空间  下载中心 社区论坛 信息公告 my小屋
联系我们
设为首页
加入收藏
热门:qq挂机,asp,php,jsp,xml
,sql,.net,编程 程序 网页图象
首页>网络编程>其他相关>正文 中国黑客群攻击美政府网站 拿到部   微软计划开放office文件格式 消除   腾讯联合八部门严厉打击挂机网站   神六载人飞行圆满成功   美国会要求nasa彻底完成空间站建   google中国研究院有望落户清华   深度分析:论雅虎中国的夭折和阿   神六可能于10月13日上午11点发射   盖茨继续当全美首富   adobe ceo痛斥微软 称其管理层从   
热 点 排 行
dll文件下载
qq挂机的n种快速方法
长白山天池怪兽再现 一分钟
腾讯qq调整升级条件 不再诱
ape歌曲的播放、转换和刻录
新开放qq免费挂级网站
qq挂级程序,qq免费挂机源程
刘亦菲 变性人、堕胎,自称
photoshop通道抠图:给秀发
免费把qq炫铃设为本机qq的
用通通通作代理在局域网上
用6位qq注意啦,免费领取6位
超级女声总决赛 现场实况(
用nero制作win98多功能启动
亲身体验!让桌面不再粗糙
推 荐 新 闻
中国黑客群攻击美政府网站
bittorrent被好莱坞招安盗
网站建设中,关键词选择技
神六载人飞行圆满成功
国庆长假上网慎防“移动杀
连环起诉google 传统媒体欲
最强秘籍 ie7最新使用技巧
神六完成总装可接航天器 外
adobe ceo痛斥微软 称其管
微软急调张亚勤回中国 千里
微软宣布重大重组方案 将划
腾讯qq 2005 beta3火热发布
腾讯扩张路线图曝光 陈天桥
腾讯拍拍网正式吹响进军c2
第五届“西湖论剑”文字实
相 关 新 闻
首页>网络编程>其他相关>正文

产生一个密码记录并发送给用户


http://www.iyit.net  日期:2005-11-24 17:47:52  来源:易特网络技术  点击:
this article generates a password random, requires a database and mails the password.
<%@language="vbscript" %>
******************************
<% 
’code by manikantan
’web developer 
’3rd agenda
’nungambakkam, chennai india 
%>
<% 
set mail= server.createobject("cdonts.newmail") 
mail.subject="thank you for registering" 
mail.to = mailid mail.from ="webmaster@thesite" 
mail.body= "this is the initial password to our site...." & vbcrlf 
&href=’mailto:mailid="user@ursite.com’>mailid="user@ursite.com"
address="address"

’other data like phone number as per the member database in the site
’all these values are obtained from the request method from a .htm which submits to this file
’mainly employed in registration
’assumes you have cdonts.dll installed in the web server.
set conn = server.createobject("adodb.connection")
conn.open "dsn","uid","pwd"
set rec= conn.execute("select count(*) from membertable")
id = cint(rec.fields(0))+1 
r=rnd *50
response.write r & "<br>"
for i = 0 to 20
if cint(r)>0 and cint(r)<26 then str=str +chr(97 + cint(r))
r=rnd *100
next 
response.write str
pwd=left(str,2)
pwd=pwd & id
pwd=pwd & right(str,2)
pwd=pwd & second(time)
’an update query can be passed from here for the username ,password and other details or can be triggered 
from another page ’when the user responds to the mail...something like sending a url as a mail and on 
click of the url in the mail..call another page ’which updates ..so we can be sure that only confirmed 
users are updated
%>
<br>
<% 
set mail= server.createobject("cdonts.newmail")
mail.subject="thank you for registering"
mail.to = mailid
mail.from ="webmaster@thesite"
mail.body= "this is the initial password to our site...." & vbcrlf & "change it if you want" & vbcrlf & 
pwd & vbcrlf & "thank you for using the site"
mail.send
%>

上一篇:从数据库中动态选取下拉列表的方法
下一篇:没有了

[发送给好友] [打印本页] [关闭窗口] [返回顶部] 转载请注明来源:http://www.iyit.net
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
责任编辑: 投稿作者: 易特网络技术
信息来源: 易特网络技术 录入时间: 2005-11-24 17:47:52
浏览次数: 投稿信箱: shtghy@163.com
  友情链接
设置首页 - 版权声明 - 广告服务 - 关于我们 - 联系我们 - 友情连接
copyrights ?2004-2005 iyit.net all rights reserved.
网站合作、广告联系qq:147007642、466949678
易特网络技术 点击这里给我发消息