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:
Safe command=append (1999)
[format] problem (2001)
Fun with Dates - revisited (again) (1997)
many-to-one problem (1998)
blank fields (1999)
Electronic Delivery (1997)
WebCatalog/Mac 2.1b2 New Features (1997)
[ShowNext] (1997)
Price + Texte (1999)
[WebDNA] "Technical Reference" link broken in admin (2013)
tcpconnect - username/password (2005)
question: webdelivery folder and file (1997)
[WebDNA] Two file tags don't work as expected (2009)
Multiple 'Users.db' files not possible (1997)
DNS Lookup 2 (2000)
Cancel Subscription (1996)
Re:Help name our technology! (1997)
Frames and WebCat (1997)
Incrementing a number (1998)
Sitebuilder / StoreBuilder - *related.db* (2008)