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:
>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:
[shell] (2002)
Multiple Ad databases? (1997)
Emailer file formats (1998)
Nested [xxx] contexts & Bad Suffix (1998)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
I'm new be kind (1997)
RE: [WebDNA] PROBLEM WITH [SQL] (2009)
WebCat2: Formulas.db question (1997)
Possible Bug in 2.0b15.acgi (1997)
FEATURE REQUEST: Auto Resizing of images (2002)
Initiating NewCart (1997)
[username][password] not showing up! HELP! (1999)
Referrer field to header field conversion (1997)
Heads up, cookies *may* be outlawed in Europe (2001)
math a various prices (1997)
Talk List Suggestions (1997)
emailer (1997)
Snake Bites (1997)
emailer on Windows Beta 18 (1997)
[WebDNA] Sendmail problem (2009)