Re: PARAMETER vs. OPERATOR (was The BUG is BACK ...)

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18640
interpreted = N
texte = >All I want is to prevent users from entering < and > into some of my >form fields ... because disallowing those characters will effectively >prevent them from creating hyperlinks in those fields.That's easy -- no need to use ShowIf at all, just always wrap [ConvertChars] around your form variables as you're appending them to the database. Those characters will always be converted to < and > and they won't show up as hyperlinks.As for your other problem, I don't see it. The following WebDNA works as expected:[ShowIf [url]<[/url]^[url]<[/url]]It contains <![/ShowIf]as in %3E^%3E, which is true, so It contains < is printed. Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: PARAMETER vs. OPERATOR (was The BUG is BACK ...) (Kenneth Grome 1998)
  2. Re: PARAMETER vs. OPERATOR (was The BUG is BACK ...) (PCS Technical Support 1998)
  3. PARAMETER vs. OPERATOR (was The BUG is BACK ...) (Kenneth Grome 1998)
>All I want is to prevent users from entering < and > into some of my >form fields ... because disallowing those characters will effectively >prevent them from creating hyperlinks in those fields.That's easy -- no need to use ShowIf at all, just always wrap [convertchars] around your form variables as you're appending them to the database. Those characters will always be converted to < and > and they won't show up as hyperlinks.As for your other problem, I don't see it. The following WebDNA works as expected:[ShowIf [url]<[/url]^[url]<[/url]]It contains <![/ShowIf]as in %3E^%3E, which is true, so It contains < is printed. Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Checkboxes on forms?? (1998) This message couldn't reach the list! (multi-column (1998) OK, here goes... (1997) WCf2 and nested tags (1997) Date stamp and purging (1998) Showif, Hideif reverse logic ? (1997) Solution: Mult-File Upload w/ Web Star (2000) Multiple prices (1997) WebDNA 6.0 & MAC OS X Server 10.4.10 (2007) Only charge card when product shipped ? (1997) Follow-Up to: Removing [showif] makes a big difference in speed (1997) Pre-flight public flag (1997) [lottaCopy] through SSL (1998) Possible Bug in 2.0b15.acgi (1997) Protecting Realms (1998) Re1000002: Setting up shop (1997) Web*3 virtual hosting Webcatalog problem (1998) insecure client not shown (1998) Authenticate (1997) Replace/Commit not Replacing/Commiting (2000)