Re: Email password -- was Classified Ads 4 Sale

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19588
interpreted = N
texte = Dan wrote:>I read your post about your modified classifiied ads password system. I >like your variation where the user submits the email address. I would be >interested in the code you used. I am about to set up a registered >users area and I am looking for good ideas like yours that I could learnDan,I'm glad to help. It's really pretty straightforward code, using nested showifs and searches. Pick it apart and learn from it. That's how I learned. If you have any questions, feel free to ask. If you are new to this, you may not have picked up on the concept of passing variables from page to page... that's where the 'trigger' variable comes from. Nothing special about it; just a variable name I made up so an appropriate passed value will make the [showif] part show. That way, all the code stays on one neat page.Terry Email Password
[showif [trigger]=findemail] [search db=/fdusers/fdusers.db&eqemaildatarq=[email]][showif [numfound]=0] That email address was not in our records. If you think you made a typing mistake, try it again in the form below. But if you have changed your email address, you must email membership@feetdreams.com to update your records.[SendMail to=passwords@feetdreams.com&from=membership@feetdreams.com&subject=[email] is fishing for a password] This person asked for their username and password, but the email was not in the records: email: [email] Username: [fduser] Password: [fdpassword] realname: [realname] Their browser contained: Username: [username] Password: [password] Calling from: [ipaddress] [/SendMail] [/showif] [showif [numfound]=1] [founditems] The username and password for your membership at Feet Dreams has been emailed to [Email]. Unless [Email] is no longer a valid address, you should be able to check your email for your login information right away.[SendMail to=[email]&from=membership@feetdreams.com&subject=Password Reminder] The username and password for your membership at Feet Dreams are: Username: [fduser] Password: [fdpassword] [/SendMail][SendMail to=passwords@feetdreams.com&from=membership@feetdreams.com&subject=[email] lost their password] This person asked for their username and password: realname: [realname] Username: [fduser] Password: [fdpassword] email: [email] group: [group] membership expires: [memexpdate] Their browser contained: Username: [username] Password: [password] Calling from: [ipaddress] [/SendMail][/founditems] [/showif][showif [numfound]>1] There is more than one user with that email address. Please email membership@feetdreams.com directly with your name and address so we may correct your records.[SendMail to=passwords@feetdreams.com&from=membership@feetdreams.com&subject=[email] lost password, our records need to be cleaned up] A person asked for their username and password, but [email] is tied to these accounts: [founditems] ===== Real name: [realname] Username: [fduser] ID#: [fdid] group: [group] membership expires: [memexpdate] [/founditems] ================= Their browser contained: Username: [username] Password: [password] Calling from: [ipaddress] [/SendMail][/showif] [/search] [/showif]
Instant Password Emailer

Please enter your email address so we can look it up in our records. This must be the same email address you signed up with when you joined Feet Dreams.

Terry Wilson terryw@rainbowcreek.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Email password -- was Classified Ads 4 Sale (Terry Wilson 1998)
  2. Email password -- was Classified Ads 4 Sale (Terry Wilson 1998)
Dan wrote:>I read your post about your modified classifiied ads password system. I >like your variation where the user submits the email address. I would be >interested in the code you used. I am about to set up a registered >users area and I am looking for good ideas like yours that I could learnDan,I'm glad to help. It's really pretty straightforward code, using nested showifs and searches. Pick it apart and learn from it. That's how I learned. If you have any questions, feel free to ask. If you are new to this, you may not have picked up on the concept of passing variables from page to page... that's where the 'trigger' variable comes from. Nothing special about it; just a variable name I made up so an appropriate passed value will make the [showif] part show. That way, all the code stays on one neat page.Terry Email Password
[showif [trigger]=findemail] [search db=/fdusers/fdusers.db&eqemaildatarq=[email]][showif [numfound]=0] That email address was not in our records. If you think you made a typing mistake, try it again in the form below. But if you have changed your email address, you must email membership@feetdreams.com to update your records.[SendMail to=passwords@feetdreams.com&from=membership@feetdreams.com&subject=[email] is fishing for a password] This person asked for their username and password, but the email was not in the records: email: [email] Username: [fduser] Password: [fdpassword] realname: [realname] Their browser contained: Username: [username] Password: [password] Calling from: [ipaddress] [/SendMail] [/showif] [showif [numfound]=1] [founditems] The username and password for your membership at Feet Dreams has been emailed to [Email]. Unless [Email] is no longer a valid address, you should be able to check your email for your login information right away.[SendMail to=[email]&from=membership@feetdreams.com&subject=Password Reminder] The username and password for your membership at Feet Dreams are: Username: [fduser] Password: [fdpassword] [/SendMail][SendMail to=passwords@feetdreams.com&from=membership@feetdreams.com&subject=[email] lost their password] This person asked for their username and password: realname: [realname] Username: [fduser] Password: [fdpassword] email: [email] group: [group] membership expires: [memexpdate] Their browser contained: Username: [username] Password: [password] Calling from: [ipaddress] [/SendMail][/founditems] [/showif][showif [numfound]>1] There is more than one user with that email address. Please email membership@feetdreams.com directly with your name and address so we may correct your records.[SendMail to=passwords@feetdreams.com&from=membership@feetdreams.com&subject=[email] lost password, our records need to be cleaned up] A person asked for their username and password, but [email] is tied to these accounts: [founditems] ===== Real name: [realname] Username: [fduser] ID#: [fdid] group: [group] membership expires: [memexpdate] [/founditems] ================= Their browser contained: Username: [username] Password: [password] Calling from: [ipaddress] [/SendMail][/showif] [/search] [/showif]
Instant Password Emailer

Please enter your email address so we can look it up in our records. This must be the same email address you signed up with when you joined Feet Dreams.

[thisurl]>

Terry Wilson terryw@rainbowcreek.com Terry Wilson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

netstat -a on downed server (2004) F3 crashing server (1997) WebCatalog and Webstar 3.02 (1998) Editing Users.db (1997) Multiple shipping databases (1997) RAM variables (1997) webcat sendmail error - unix sendmail failed to deliver thisemail (2000) t or f (1997) FAX orders (1996) Converting native excel files (2001) Physical Security for WebCatalog Directories (1997) ShowNext example for GeneralStore (1997) b12 cannot limit records returned and more. (1997) Summing fields (1997) RE: [countChars] from