Re: Missing something simple?
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 22317
interpreted = N
texte = The problem is that it's doing the first showif, which is appending the username to the db, then the next showif is finding that username. Switch your showif's around and the problem will go away ... :)>Hello,>>I am using this little bit of code to check if a user name exists in a>custom MyUsers.db>> [ShowIf [Lookup>db=BldrUsers.db&value=[Uppercase][UserName_][/Uppercase]&lookinfield=UserNa>me&ReturnField=UserName&NotFound=]![Uppercase][UserName_][/Uppercase]]> [Append>db=BldrUsers.db]UserName=[Uppercase][UserName_][/Uppercase]&PassWord=[PassW>ord_]&EmailAddr=[EmailAddr_][/Append]> User Added> [/ShowIf]>
> [ShowIf [Lookup>db=BldrUsers.db&value=[Uppercase][UserName_][/Uppercase]&lookinfield=UserNa>me&ReturnField=UserName&NotFound=]=[Uppercase][UserName_][/Uppercase]]> This User Name Already Exists. Try Another!> [/ShowIf]>>It works fine, meaning it functions, but the string This User Name>Already Exists. Try Another! shows no matter what. I want to show this>only if the name exists.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
The problem is that it's doing the first showif, which is appending the username to the db, then the next showif is finding that username. Switch your showif's around and the problem will go away ... :)>Hello,>>I am using this little bit of code to check if a user name exists in a>custom MyUsers.db>> [ShowIf [Lookup>db=BldrUsers.db&value=
[uppercase][UserName_][/Uppercase]&lookinfield=UserNa>me&ReturnField=UserName&NotFound=]!
[uppercase][UserName_][/Uppercase]]> [Append>db=BldrUsers.db]UserName=
[uppercase][UserName_][/Uppercase]&PassWord=[PassW>ord_]&EmailAddr=[EmailAddr_][/Append]> User Added> [/ShowIf]>
> [ShowIf [Lookup>db=BldrUsers.db&value=[uppercase][UserName_][/Uppercase]&lookinfield=UserNa>me&ReturnField=UserName&NotFound=]=[uppercase][UserName_][/Uppercase]]> This User Name Already Exists. Try Another!> [/ShowIf]>>It works fine, meaning it functions, but the string This User Name>Already Exists. Try Another! shows no matter what. I want to show this>only if the name exists.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
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:
Languages (1997)
greater than or equal to (1997)
Getting it as [raw] (2004)
RE: Automatic thumbnail images (1998)
WebMerchant 1.6 and SHTML (1997)
For those of you not on the WebCatalog Beta... (1997)
typhoon... (1997)
WebCat2.0 [format thousands .0f] no go (1997)
do you have a webcatalog tool you want to sell? (1999)
Forcing a NEWCART (1997)
Moment of Thanks (1997)
NEW INFO: I'm stuck: Can't open order file. Ignoring[OrderFile] context (2000)
formatting a number (1999)
Re:Running 2 two WebCatalog.acgi's (1996)
3.0.8 PDF Manual? Do YOU have it? :) (2000)
Summary search -- speed (1997)
Copyright ? (1997)
Help (1999)
Re:Can anyone help me with this shipping thing? (1998)
variable value locked when passed to include (2001)