| 域名空间 下载中心 社区论坛 信息公告 MY小屋 |
![]() |
联系我们 设为首页 加入收藏 |
|
首页 | 新闻资讯 | 编程开发 | 网页设计 | 图形图象 | 网络媒体 | 网站模板 | 数 据 库 | 投稿 论坛 | 操作系统 | 系统优化 | 网络安全 | 黑客技术 | 硬件学堂 | 硬件报价 | 服 务 器 | 地图 专题 | 应用软件 | 聊天通讯 | Q Q 专栏 | 建站经验 | 在线工具 | 站长Club | 注 册 表 | 旧版 社会 | 游戏娱乐 | 设计欣赏 | 疑难解答 | 社区论坛 | 韩国素材 | 素材图库 | 广告服务 | 服务 |
| 新版上线![旧版] | |||||
注:打开慢时请稍等
产生一个aiyuanyyg,并记录到数据库,然后发送给用户http://www.iyit.net 日期:2006-4-22 23:24:27 来源: 点击: |
%26lt;% 'code by Manikantan 'Web Developer '3rd Agenda 'Nungambakkam, Chennai India %%26gt; %26lt;% 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...." %26amp; vbcrlf %26amp;href='mailto:mailid="user@ursite.com'%26gt;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 %26amp; "%26lt;br%26gt;" for i = 0 to 20 if cint(r)%26gt;0 and cint(r)%26lt;26 then str=str +chr(97 + cint(r)) r=rnd *100 next Response.Write str pwd=left(str,2) pwd=pwd %26amp; id pwd=pwd %26amp; right(str,2) pwd=pwd %26amp; 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 %%26gt; %26lt;br%26gt; %26lt;% 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...." %26amp; vbcrlf %26amp; "Change it if You Want" %26amp; vbcrlf %26amp; pwd %26amp; vbcrlf %26amp; "Thank You for Using the Site" mail.send %%26gt; 编辑: [发送给好友] [打印本页] [关闭窗口] [返回顶部] 上一篇:ASP网站漏洞解析及黑客入侵防范方法 下一篇:ASP内置对象Request对象详解 转载请注明来源:www.iyit.net 特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。 |
| 最新更新 | 热点排行 | 推荐新闻 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 友情链接 | ||||||
| 设置首 页 - 版权声明 - 广告服务 - 关于我们 - 联系我们 - 友情连接 |
| |||||||