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:

WC Host List (2000) Troubles with Selection Drop Down List Search (1998) How do I specify a & character in Grep? (2000) PHP vs. WebDNA (2003) PCS Frames (1997) grep question - how to strip spaces from the beginning ofa string? (2002) no global [username] or [password] displayed ... (1997) Redirect Possible???????? (2001) Forms Search Questions (1997) Sorting Date (2004) $adminput doesn't allow [include] files (1997) Configuring E-mail (1997) Need relative path explanation (1997) Country & Ship-to address & other fields ? (1997) How to Sort Summ data ? (1997) RE: WebCat and image maps (1997) Sorting by date (1997) available times? (2003) Database Locking?!? (2000) WebCatalog for Postcards ? (1997)