[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:
Re:F*** you (1998)
SUMM=T does not summarize by the sort parameters ... (2003)
WCf2 and nested tags (1997)
FW: WebDNA-Talk searchable? (1997)
[OT] html background att (2003)
WebCat2 Append problem (B14Macacgi) (1997)
writefile - continued (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Wierd quantities (2000)
What about an ends with operator? (2000)
listfields question (2005)
Associative lookup style? + bit more (1997)
filemaker - orderfile (1997)
Search multiple fields (1997)
Subtotal help (1997)
Username for Admin Group (1997)
random in arizona (2003)
Database Advice (1996)
webcatalog [date] bug...not (1999)
WebCat and Personal Web Server (1998)