Lois
|
| Posted: 02/28/2002, 10:48 PM |
|
It is the validation event and the before insert event to email a lost password in this example http://www.codecharge.com/download/files/examples/gotocodev1.zip
The Validation event:
'The recordset is created and read in the Validation section
email_subject = "Re: Fogotten GotoCode.com Password"
email_body = "Per your request, we are emailing you your GotoCode.com login information." & VBcrlf & _
"Your Username/Login is: " & GetValue(user_rs, "user_login") & VBcrlf & _
"Your Password is: " & GetValue(user_rs, "user_pass") & VBcrlf & _
VBcrlf & _
"Thank you for visiting http://www.gotocode.com"
'Send text email
call sendemail("support@gotocode.com", GetValue(user_rs, "user_email"), email_subject, email_body, 1)
flddate_sent = Now()
flduser_ip = Request.ServerVariables("REMOTE_HOST")
The Before Insert:
'The recordset is created and read in the Validation section
email_subject = "Re: Fogotten GotoCode.com Password"
email_body = "Per your request, we are emailing you your GotoCode.com login information." & VBcrlf & _
"Your Username/Login is: " & GetValue(user_rs, "user_login") & VBcrlf & _
"Your Password is: " & GetValue(user_rs, "user_pass") & VBcrlf & _
VBcrlf & _
"Thank you for visiting http://www.gotocode.com"
'Send text email
call sendemail("support@gotocode.com", GetValue(user_rs, "user_email"), email_subject, email_body, 1)
flddate_sent = Now()
flduser_ip = Request.ServerVariables("REMOTE_HOST")
I actually only want to give the user the option of filing in their email address and then sen them the login and password if it helps the table is users the fields are user_name, email, and login.
|
|
|
 |
Nicole
|
| Posted: 03/01/2002, 2:15 AM |
|
Lois,
first, latest GotoCde version is available at: http://www.codecharge.com/download/files/examples/gotocodev2.zip
It is created with ASP and PHP events. To get PHP version just change language to PHP+templates on Site->Properties
|
|
|
 |
|