Re: Protect and Serve

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23481
interpreted = N
texte = I assume that their [id] is not literally id. If you are comparing [id] and [access] against a database, try [showif [lookup db=your.db&value=[id]&lookInField=id&returnField=access¬Found=0]=[access] ] [text]unauthorized=F[/text] [/showif] [hideif [lookup db=your.db&value=[id]&lookInField=id&returnField=access¬Found=0]=[access] ] [text]unauthorized=T[/text] [/hideif]you may want to change the comparison to ^ contains depending on your data.Mike ----------> ok I changed it then tried it with this > > [ShowIf id![id]] > [text]unauthorized=T[/text] > [/ShowIf] > > [ShowIf access![access]] > [text]unauthorized=T[/text] > [/ShowIf] > > [ShowIf [unauthorized]=T] > show me > [/ShowIf] > > then no matter what it id and access was even if the name and password > were in the database it still brings up the unauthorized text > > Joseph Pugh > IMillennia. > > Associated Messages, from the most recent to the oldest:

    
  1. Re: Protect and Serve (Joseph Pugh 1999)
  2. Re: Protect and Serve (Charles Kefauver 1999)
  3. Re: Protect and Serve (Mike_Davis 1999)
  4. Re: Protect and Serve (Dave MacLeay 1999)
  5. Re: Protect and Serve (Joseph Pugh 1999)
  6. Re: Protect and Serve (Kenneth Grome 1999)
  7. Re: Protect and Serve (Joseph Pugh 1999)
  8. Re: Protect and Serve (PCS Technical Support 1999)
  9. Re: Protect and Serve (Rob Marquardt 1999)
  10. Re: Protect and Serve (The Mooseman 1999)
  11. Re: Protect and Serve (Christer Olsson 1999)
  12. Re: Protect and Serve (Dave MacLeay 1999)
  13. Re: Protect and Serve (Martin Bech 1999)
  14. Re: Protect and Serve (The Mooseman 1999)
  15. Re: Protect and Serve (Christer Olsson 1999)
  16. Re: Protect and Serve (Rob Marquardt 1999)
  17. Re: Protect and Serve (The Mooseman 1999)
  18. Re: Protect and Serve (Lorenzo Perone 1999)
  19. Re: Protect and Serve (Lorenzo Perone 1999)
  20. Re: Protect and Serve (The Mooseman 1999)
  21. Re: Protect and Serve (RH Prouty 1999)
  22. Re: Protect and Serve (Kenneth Grome 1999)
  23. Re: Protect and Serve (Dave MacLeay 1999)
  24. Re: Protect and Serve (The Mooseman 1999)
  25. Re: Protect and Serve (Dave MacLeay 1999)
  26. Protect and Serve (The Mooseman 1999)
I assume that their [id] is not literally id. If you are comparing [id] and [access] against a database, try [showif [lookup db=your.db&value=[id]&lookInField=id&returnField=access¬Found=0]=[access] ] [text]unauthorized=F[/text] [/showif] [hideif [lookup db=your.db&value=[id]&lookInField=id&returnField=access¬Found=0]=[access] ] [text]unauthorized=T[/text] [/hideif]you may want to change the comparison to ^ contains depending on your data.Mike ----------> ok I changed it then tried it with this > > [ShowIf id![id]] > [text]unauthorized=T[/text] > [/ShowIf] > > [ShowIf access![access]] > [text]unauthorized=T[/text] > [/ShowIf] > > [ShowIf [unauthorized]=T] > show me > [/ShowIf] > > then no matter what it id and access was even if the name and password > were in the database it still brings up the unauthorized text > > Joseph Pugh > IMillennia. > > Mike_Davis

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:

XML - USPS Lookups - UPS Lookups (2003) Resolving variables into field names (1998) WC Host List (2000) RE: Netscape v. IE (1997) [WebDNA] Authorize working connection... (2020) WC2b15 File Corruption (1997) suffix mapping for NT? (1997) OT Cookie limit (2001) webcat (2000) ImageMagick (2005) Nested tags count question (1997) Stat analyzer (1997) Sorting by date (1997) Documentation Feedback (1997) Help! WebCat2 bug (1997) Plugin or CGI or both (1997) Problems w/ heavy use of cart header fields? (1998) ODBC (2000) [WebDNA] CICADA (2009) WebCat2b13MacPlugIn - [include] (1997)