Home    Cart    Free Download    Manual

Installation:
  Free Downloads
  The H2O Family
  Install Notes

Programming:
  Prerequisites
  H2O Whitepaper
  Online Manual
  Code Examples
  H2O Free Support


What's H2O?
H2O is programming made for the web.

What's it like?
H2O is English-like. If you know some Perl, VB, ASP, or PhP you'll be immediately productive in H2O. It runs on Linux, Mac, Unix, and Windows.

How do I try it?
Download H2O for free. Get it from hosting providers. Or buy on-line.

Where does H2O come from?
The language was invented by Aestiva. H2O stands for:
   HTML with
   HTML/OS
   Overlays.


Lost Password Retrieval

lostpassword.html



<<

login_file="users.txt"
email_col=3
email_templatename="template.txt"
>>

<html>
<title>Lost Password</title>
<form method=post action=getpassword>
<table border=0 cellpadding=2 cellspacing=0 bgcolor=#EEEEEE>
<tr><td><font size=1 face=arial>
Enter Email to Recover Lost Password</font></td></tr>

<tr><td>
<< IF err_msg != "ERROR" THEN DISPLAY err_msg /DISPLAY /IF
err_msg="ERROR"
>>
</td></tr>
<tr><td>
<input type=text size=20 name=EmailOnFile>
<input type=submit value="Go">
</td></tr></table>

</form>
</html>
<<overlay getpassword
COPY FILE=login_file TS="," TO al_data /COPY
al_data=GETCOLEQ(al_data,email_col,EmailOnFile)
IF al_data[1]="" THEN
al_err="Email not on file. Sorry."
ELSE
myLogin=al_data[1]
myPassword=al_data[2]
COPY FILE=email_templatename TS="," TO void /COPY
mytext=void[1]
mysubject=void[2]
# search and replace template codes /#
mytext=REPLACEALL(mytext,"[email]",EmailOnFile)
mytext=REPLACEALL(mytext,"[login]",myLogin)
mytext=REPLACEALL(mytext,"[password]",myPassword)
mysubject=REPLACEALL(mysubject,"[Email]",EmailOnFile)

NETMAILSEND("",EmailOnFile,mysubject,mytext,
"40","","text/html","")
al_err="Password recovered. Check your email."
/IF
GOTO PAGE
>>



NOTE: This assumes email addresses are stored in the users.txt
login file. The email addresses are stored in column 3 and are unique.
This application also uses an email template to send out the lost
password email notice. To edit the template you can use the Email Template
Editor in this sample code section.

Home | Cart | Free Download | Online Manual
COPYRIGHT © 2005 Aestiva, LLC. ALL RIGHTS RESERVED.