CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 can someone help me tranlate this from asp to php

Print topic Send  topic

Author Message
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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.