人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

產生一個密碼,并記錄到數據庫,然后發送給用戶___ 是老外寫的

產生一個密碼,并記錄到數據庫,然后發送給用戶___ 是老外寫的

更新時間:2022-07-31 文章作者:未知 信息來源:網絡 閱讀次數:


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
%>


The New Pass word has been Mailed.
******************************

Regards
Vedachalam Manikantan

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 武夷山市| 陈巴尔虎旗| 德昌县| 津市市| 洞头县| 新昌县| 三江| 太白县| 萨嘎县| 金溪县| 七台河市| 彭州市| 深泽县| 隆回县| 阿克陶县| 调兵山市| 宕昌县| 太湖县| 永顺县| 郓城县| 两当县| 莲花县| 德令哈市| 连平县| 马鞍山市| 仁怀市| 赣州市| 伊川县| 巩义市| 兴山县| 台中县| 灵宝市| 周宁县| 舒城县| 永昌县| 南雄市| 利辛县| 阿合奇县| 吴川市| 边坝县| 曲周县|