[lookup] still not working
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20659
interpreted = N
texte = Bob,I tried the code that you suggested that I use, and it is not working. Iam not quite sure what I am doing wrong. I tried many differentvariations of this, trying to find the problem with the code, but noluck so far. The lookup acts as if it is finding the item that is beinglooked-up in the database even though it is not there. No matter whatthe value of variable [cpassword] (which is submitted on the previouspage), it always shows the first statement (which should be hidden ifthe content of [cpassword] is not found in the database). Here is thecode for one of my attempts:
[hideif notfound=[lookupdb=AKcustomers.db&lookinfield=custpassword&value=[cpassword]&returnfield=custpassword¬found=notfound]]Sorry, that username already exists, please select a different username.
[/hideif][Showif notfound=[lookupdb=AKcustomers.db&lookinfield=custpassword&value=[cpassword]&return=custpassword¬found=notfound]] [Append db=AKcustomers.db]eMail=[eMail]&BillFirstName;=[BillFirstName]&BillInitial;=[BillInitial]&BillLast;=[BillLast]&BillCompany;=[BillCompany]&BillTitle;=[BillTitle]&BillAddr1;=[BillAddr1]&BillCity;=[BillCity]&BillState;=[BillState]&BillZip;=[BillZip]
[/Append] Thank you [BillFirstName]! Your customer information has been saved. Commit your password to memory for future ordering: ([cpassword]) [/showif] Any suggestions as to what is wrong? (This is the first time I have used[lookup])Thanks,Mike
Associated Messages, from the most recent to the oldest:
Bob,I tried the code that you suggested that I use, and it is not working. Iam not quite sure what I am doing wrong. I tried many differentvariations of this, trying to find the problem with the code, but noluck so far. The lookup acts as if it is finding the item that is beinglooked-up in the database even though it is not there. No matter whatthe value of variable [cpassword] (which is submitted on the previouspage), it always shows the first statement (which should be hidden ifthe content of [cpassword] is not found in the database). Here is thecode for one of my attempts: [hideif notfound=[lookupdb=AKcustomers.db&lookinfield=custpassword&value=[cpassword]&returnfield=custpassword¬found=notfound]]Sorry, that username already exists, please select a different username.
[/hideif][Showif notfound=[lookupdb=AKcustomers.db&lookinfield=custpassword&value=[cpassword]&return=custpassword¬found=notfound]] [Append db=AKcustomers.db]eMail=[eMail]&BillFirstName;=[BillFirstName]&BillInitial;=[BillInitial]&BillLast;=[BillLast]&BillCompany;=[BillCompany]&BillTitle;=[BillTitle]&BillAddr1;=[BillAddr1]&BillCity;=[BillCity]&BillState;=[BillState]&BillZip;=[BillZip]
[/Append] Thank you [BillFirstName]! Your customer information has been saved. Commit your password to memory for future ordering: ([cpassword]) [/showif] Any suggestions as to what is wrong? (This is the first time I have used[lookup])Thanks,Mike
Mike Eberly
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:
strange IE 4.0 (1998)
Emailer Error 472? (2004)
Multiple prices (1997)
Grep to convert characters to html entities (2006)
Whats up with emailer? (1998)
NT considerations (1997)
sorting month by month (2004)
read and write you own cookies with webcat (1997)
Interfacing WebMerchant to www.fedex.com (1997)
select multiple 2 more cents (1997)
WebDNA - fun to compare (2005)
Tax on Shipping question (1998)
removing commas from a preformatted number (2000)
strange problem listfiles and movefile (2000)
webcat NT (1998)
Plugin or CGI or both (1997)
triggers (2003)
WebCatalog2 Feature Feedback (1996)
shownext problems (1998)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)