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:

[WebDNA] WebDNA glitch, no response required ... (2009) Rubbish in form fields (2004) RE: type 2 errors with ssl server (1997) Searching multiple Databases (1997) Multiple Admins through users.db (1997) Keep away (1997) Using EIMS instead of Emailer (1998) Firesite cache vs webcat cache (1997) Date subtraction (2002) A Global Variable (1997) rotating thumbnails (1997) Purchase Plugin Missing (1996) Putting a page between checkout and invoice (1999) To Use Cookies or Not To Use Cookies (2003) Public beta 2 for WebCatalog 4.0 is now available. (2000) Disregard Not reading blanks (1998) OT:Stock Quotes (2000) [replace] and thread memory... (2000) all records returned. (1997) WebCat2 - Getting to the browser's username/password data (1997)