Re: exclamation mark...

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23419
interpreted = N
texte = >From the docs:> Tip: make sure neither side of the comparison equation contains any of the special > comparison letters listed above. For example, [ShowIf I'm Friendly! Are > you?=[question]] contains an exclamation point inside the sentence being compared, so > WebCatalog sees this as I'm Friendly is not equal to Are you?=[question], which > is not what the author meant to compare. > > The solution is to wrap each side of the comparison with [URL] contexts, like this: > [ShowIf [URL]I'm Friendly! Are you?[/URL]=[URL][question][/URL]]. This causes > any embedded !=>< symbols to be converted to their URL equivalents, which can then > be compared correctly. Peter Ostry wrote: > > Bad bug? > > I have a form field called v_subject. > After submitting the form, I ask: > [showif [v_subject]=] > Please type a subject. > [/showif] > > When I put an exclamation mark in this field, [showif] reports an empty > field. [formvariables] shows the correct string, including the ! sign. > The position within the string does not matter, the presence of a ! is > enough to cheat [showif]. It happens with [hideif] too, POST and GET makes > no difference. (WebCat 3.02 Plug-in) > > Can anyone reproduce and confirm this behavior? > > Peter > > ++++++++++++++++++++++++++++++++++++++++++++++++ > Peter Ostry - Vienna/Austria - www.ostry.com > Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21 > ++++++++++++++++++++++++++++++++++++++++++++++++ -- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (908) 222-9001 * * 111 Mali Drive * FAX: (908) 222-9002 * * North Plainfield, NJ * e-mail: help@altimac.com * * 07062-2355 * WWW: http://www.altimac.com * ************************************************************** Associated Messages, from the most recent to the oldest:

    
  1. Re: exclamation mark... (Peter Ostry 1999)
  2. Re: exclamation mark... (Howard Wolosky 1999)
  3. Re: exclamation mark... (Gil Poulsen 1999)
  4. Re: exclamation mark... (PCS Technical Support 1999)
  5. exclamation mark... (Peter Ostry 1999)
>From the docs:> Tip: make sure neither side of the comparison equation contains any of the special > comparison letters listed above. For example, [ShowIf I'm Friendly! Are > you?=[question]] contains an exclamation point inside the sentence being compared, so > WebCatalog sees this as I'm Friendly is not equal to Are you?=[question], which > is not what the author meant to compare. > > The solution is to wrap each side of the comparison with [url] contexts, like this: > [ShowIf [url]I'm Friendly! Are you?[/URL]=[url][question][/URL]]. This causes > any embedded !=>< symbols to be converted to their URL equivalents, which can then > be compared correctly. Peter Ostry wrote: > > Bad bug? > > I have a form field called v_subject. > After submitting the form, I ask: > [showif [v_subject]=] > Please type a subject. > [/showif] > > When I put an exclamation mark in this field, [showif] reports an empty > field. [formvariables] shows the correct string, including the ! sign. > The position within the string does not matter, the presence of a ! is > enough to cheat [showif]. It happens with [hideif] too, POST and GET makes > no difference. (WebCat 3.02 Plug-in) > > Can anyone reproduce and confirm this behavior? > > Peter > > ++++++++++++++++++++++++++++++++++++++++++++++++ > Peter Ostry - Vienna/Austria - www.ostry.com > Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21 > ++++++++++++++++++++++++++++++++++++++++++++++++ -- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (908) 222-9001 * * 111 Mali Drive * FAX: (908) 222-9002 * * North Plainfield, NJ * e-mail: help@altimac.com * * 07062-2355 * WWW: http://www.altimac.com * ************************************************************** Gil Poulsen

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:

keep W* in front applescript? (1998) Weird G3 Happenings. (1998) randomness (1997) [WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018) Here's how to kill a Butler Database. (1997) problem with [Format Days_To_Date] (2000) problems with 2 tags (1997) Webcat Manual and TeaRoom Examples Uses Different Examples. (1997) Examples of cross-selling with WebCatalog? (1998) [WebDNA] Date: header on emails - timezone problem perhaps (2010) Database field limit? (1998) Separate SSL Server (1997) need some help with a loop [nested search?] (1999) Opinion: [input] should be called [output] ... (1997) Separate SSL Server (1997) checksum for credit cards? (1997) [OT] Checkboxes! Javascript? (2005) Date search - yes or no (1997) Rhapsody? (1997) WC2.0 Memory Requirements (1997)