Re: Striping Characters

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20650
interpreted = N
texte = Try using [ConvertChars] with a custom conversion database that converts all unwanted characters to nothing: [Append ...]Field=[ConvertChars db=strip.db][Value][/ConvertChars][/Append]--strip.db-- FromTo $ /etc.This will only work if you are using an [append] or [replace] context. If you're using an $Append or $Replace command, there are ways to validate form input with JavaScript on the client side. Check webreference.com or builder.com for examples.-Dave At 1:53 PM 10/23/98, Joshuwa Jenkins wrote: >Hello all, > >How would I go about striping characters from an input field? > >Say I want to remove the following characters $/(){}[],' from an input >field before it is written to a database. > >Actually I would like it if I could limit the field to only numeric >charicters, and strip out the above mentioned characters. > >How would I go about that? > >BTW: A BIG thanks to Dave MacLeay for helping with my last problem. o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: Striping Characters (charles kline 1998)
  2. Re: Striping Characters (Joshuwa Jenkins 1998)
  3. Re: Striping Characters (Joshuwa Jenkins 1998)
  4. Re: Striping Characters (Dave MacLeay 1998)
  5. Re: Striping Characters (Peter Ostry 1998)
  6. Striping Characters (Joshuwa Jenkins 1998)
Try using [convertchars] with a custom conversion database that converts all unwanted characters to nothing: [Append ...]Field=[ConvertChars db=strip.db][Value][/ConvertChars][/Append]--strip.db-- FromTo $ /etc.This will only work if you are using an [append] or [replace] context. If you're using an $Append or $Replace command, there are ways to validate form input with JavaScript on the client side. Check webreference.com or builder.com for examples.-Dave At 1:53 PM 10/23/98, Joshuwa Jenkins wrote: >Hello all, > >How would I go about striping characters from an input field? > >Say I want to remove the following characters $/(){}[],' from an input >field before it is written to a database. > >Actually I would like it if I could limit the field to only numeric >charicters, and strip out the above mentioned characters. > >How would I go about that? > >BTW: A BIG thanks to Dave MacLeay for helping with my last problem. o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

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:

creator code (1997) Removing [showif] makes a big difference in speed (1997) Re:2nd WebCatalog2 Feature Request (1996) Shipcost update problem (1997) WebTen? (1997) Autoreturn Submit? (1997) Document Contains No Data! (1997) Showif Context combined with Search (1997) frames & carts (1997) logic help (1998) Checking for WebCatalog Version (2000) [showif] or-ing (1999) WebCat2b13MacPlugIn - [include] (1997) Part Html part WebDNA (1997) [shownext] and descending order (1997) RE: MacFinder -- a new WebDNA web site (1998) [WebDNA] [OT]Dylan - Email prob. (2008) Re:Signal Raised (1997) vs (1997) Sorry I didn't pay attention-but ??? (1997)