Problems with ^ could be solved with [REPLACE CHARACTERS]

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14114
interpreted = N
texte = It seems like ^ (contains) only compares whole words not part of words - is that right?I'm trying to make a filter for checking visitor's input for bad words, HTML tags and so on before submitting their enters into a database, so I'm tried [SHOWIF [input]^[badword]] but this works not for parts of words. If checking input for bad it will not find badword.I do have a workaround by using Applescript, but it's some sort of clumsy.Another way to go would be the new tag proposed by Ken [REPLACE CHARCTERS] if its made both case sensitive and case insensitive ([REPLACE CHARACTERS CASE=T]. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: Problems with ^ could be solved with [REPLACE CHARACTERS] (Christer Olsson 1997)
  2. Re: Problems with ^ could be solved with [REPLACE CHARACTERS] (Grant Hulbert 1997)
  3. Re: Problems with ^ could be solved with [REPLACE CHARACTERS] (Christer Olsson 1997)
  4. Re: Problems with ^ could be solved with [REPLACE CHARACTERS] (Grant Hulbert 1997)
  5. Re: Problems with ^ could be solved with [REPLACE CHARACTERS] (Christer Olsson 1997)
  6. Re: Problems with ^ could be solved with [REPLACE CHARACTERS] (Christer Olsson 1997)
  7. Re: Problems with ^ could be solved with [REPLACE CHARACTERS] (Grant Hulbert 1997)
  8. Problems with ^ could be solved with [REPLACE CHARACTERS] (Christer Olsson 1997)
It seems like ^ (contains) only compares whole words not part of words - is that right?I'm trying to make a filter for checking visitor's input for bad words, HTML tags and so on before submitting their enters into a database, so I'm tried [SHOWIF [input]^[badword]] but this works not for parts of words. If checking input for bad it will not find badword.I do have a workaround by using Applescript, but it's some sort of clumsy.Another way to go would be the new tag proposed by Ken [REPLACE CHARCTERS] if its made both case sensitive and case insensitive ([REPLACE CHARACTERS CASE=T]. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Christer Olsson

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:

Email (1998) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Plugin or CGI or both (1997) Commitdatabase tag (1998) WebCat 4 crashes WebStar / Shownext Links (2001) Nested tags count question (1997) 2cd pair of eyes (2003) Auth.net and SIM (2003) WebCatalog can't find database (1997) writing db to disk (1997) BBEdit and WebCatalog 2.0? (1997) Another reviewer 'forgets' NT WebCatalog (1998) [format xs] freeze (1997) Emailer file formats (1998) [WebDNA] Order that emailer sends emails? (2009) Re1000001: Setting up shop (1997) OT pipe - was can webcat determine an image's pixel dimensions? (2000) Database field limit? (1998) Webmerchant/Cybercash (2000) Problems passing [SKU] with $Replace in 2.0 (1997)