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:

[math date]: Arrrggh! (2003) Shopping carts and reloading pages (1997) Dynamic PDFs? (2002) FTP and [shell] (2003) WebCat2 - Getting to the browser's username/password data (1997) ODBC to WebCat (2000) [WebDNA] Sorry, WebCatalog server not running. (2008) More NT encyption!! (1999) Going to anchors within a template page (1997) Try not to laugh (2007) Mac: [ListFiles] bug alert (1997) RE: Fishing: anyone on this group willing to do support? (1998) Using Plug-In while running 1.6.1 (1997) Where is eudora plugin? (1998) WCS Newbie question (1997) Extended [ConvertChars] (1997) Error Msg (1998) osx or redhat and / or other (2005) First postarg not taking in $Commands (1997) show all problem (1997)