Re: [SHOWIF]s and empty arguments

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13201
interpreted = N
texte = At 1:34 PM -0800 8/26/97, Kenneth Grome is rumored to have typed: > If for any reason there is no value assigned to the [name] variable - > which is exactly what you're doing here - WebCat uses the raw tag > value of [name] (without the quotes) for the comparison. And since > the raw value [name] is not equal to nothing, the stuff inside the > [showif] context does not get displayed.Ah! Now I see. Sometimes, I just need stuff spelled out for me.> By the way, why do you even need the [showif] context there in the > first place? Where do you expect to get a value for [name] if you're > not passing it in the URL from the previous page? If there's never a > possibility of [name] getting a value from somewhere, you don't even > need the [showif] ... :)Actually, I have about a dozen uses for it right now. For one thing, it would let me customize my pages so that people can't tamper with the URLs by leaving out entire arguments or submitting illegal ones. I could account for every possible case pretty easily.Michael Associated Messages, from the most recent to the oldest:

    
  1. Re: [SHOWIF]s and empty arguments (Trevor Crist 1997)
  2. Re: [SHOWIF]s and empty arguments (Michael Winston 1997)
  3. Re: [SHOWIF]s and empty arguments (Kenneth Grome 1997)
  4. Re: [SHOWIF]s and empty arguments (Michael Winston 1997)
  5. [SHOWIF]s and empty arguments (Michael Winston 1997)
At 1:34 PM -0800 8/26/97, Kenneth Grome is rumored to have typed: > If for any reason there is no value assigned to the [name] variable - > which is exactly what you're doing here - WebCat uses the raw tag > value of [name] (without the quotes) for the comparison. And since > the raw value [name] is not equal to nothing, the stuff inside the > [showif] context does not get displayed.Ah! Now I see. Sometimes, I just need stuff spelled out for me.> By the way, why do you even need the [showif] context there in the > first place? Where do you expect to get a value for [name] if you're > not passing it in the URL from the previous page? If there's never a > possibility of [name] getting a value from somewhere, you don't even > need the [showif] ... :)Actually, I have about a dozen uses for it right now. For one thing, it would let me customize my pages so that people can't tamper with the URLs by leaving out entire arguments or submitting illegal ones. I could account for every possible case pretty easily.Michael Michael Winston

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:

Third try - Looking for a Programmer (2004) Which beta for w* 4.1 and a problem w/b12 (1999) Redirect (2000) Fun with dates (1997) Why is this not working? (2002) [WebDNA] END processing (2014) Safari browser and WebDNA set-cookies (2003) Problem (1997) [WebDNA] WebDNA Roll Call (2014) PIXO (1997) GoLive CyberStudio 1.0.1 (1997) subscribe (2002) Secure server question (1997) problems with WebCat-Plugin (1997) [OT] Imagemagick (2004) WebCat2 - Getting to the browser's username/password data (1997) Not really WebCat- (1997) Protecting Images (2003) Uniqueness of Cart number (2000) File upload woes (1998)