Re: Protect and Serve

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23391
interpreted = N
texte = >>Maybe copy this and try it! All you need is to type dog and hit enter.... >>it does not care about the password. >> >>Stumps me! >> >> >> >> >>

QUICKIE!

>> >> >>[ShowIf [username]!dog] >>[authenticate] >>[/ShowIf] >>[ShowIf [password]!cat] >>[authenticate] >>[/ShowIf] >> >>SOMETHING ELSE.......... ;_) > >If you don't want to switch over to using a [protect], this works... > > > > >

QUICKIE!

> > > >[ShowIf [username]!dog] >[text]unauthorized=T[/text] >[/ShowIf] > >[ShowIf [password]!cat] >[text]unauthorized=T[/text] >[/ShowIf] > >[ShowIf [unauthorized]=T] >[authenticate Some name for this area] >[/ShowIf]The first example doesn't work because only one condition has to be true (there's two [SHOWIF] tags).The only thing you have to do to get it to work is to nest the [SHOWIF] tags, then *both* condition has to be true.[ShowIf dog![username]] [ShowIf cat![password]] [authenticate] [/ShowIf] [/ShowIf] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se 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)
>>Maybe copy this and try it! All you need is to type dog and hit enter.... >>it does not care about the password. >> >>Stumps me! >> >> >> >> >>

QUICKIE!

>> >> >>[ShowIf [username]!dog] >>[authenticate] >>[/ShowIf] >>[ShowIf [password]!cat] >>[authenticate] >>[/ShowIf] >> >>SOMETHING ELSE.......... ;_) > >If you don't want to switch over to using a [protect], this works... > > > > >

QUICKIE!

> > > >[ShowIf [username]!dog] >[text]unauthorized=T[/text] >[/ShowIf] > >[ShowIf [password]!cat] >[text]unauthorized=T[/text] >[/ShowIf] > >[ShowIf [unauthorized]=T] >[authenticate Some name for this area] >[/ShowIf]The first example doesn't work because only one condition has to be true (there's two [showif] tags).The only thing you have to do to get it to work is to nest the [showif] tags, then *both* condition has to be true.[ShowIf dog![username]] [ShowIf cat![password]] [authenticate] [/ShowIf] [/ShowIf] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se Christer Olsson

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:

[WebDNA] Quick test (2008) carriage returns in data (1997) Design Help Needed (1998) emailer (1997) WebCat2: Formulas.db question (1997) Dates (1996) Server slowing down. (1997) Free pack for the New UPS ratings and services tool (2000) simple answer? [hideif] (1997) Sending emails (went[ot] ) (2002) anyone ever find IE pops an [authenticate] when it shouldn't? (2000) Pulling Javascript from a DB (2004) WebCat2: Master Counter snippet (1997) One per customer (2000) Test (2003) Email Formatting and Encryption (1998) problems with 2 tags (1997) Summ=T Problem (1997) Major bug report on rootbeer (1997) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)