Re: Rubbish in form fields

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57317
interpreted = N
texte = Pat Holliday wrote: > Hi, > > I'm building a system that has to perform calculations on inputted data, > hence it's very important that users aren't allowed to enter any old > thing into the form fields. > > Was wondering if anyone had a rock-steady way of checking this - for > instance a multiple criteria [showif] tag or something? > > [showif [UserData]^,./@£$%*] > > [text]Form=Error[/text] > > [/showif] > > Thanks, > > Pat Hi Pat, The statement above will not work because it will try to find that entire comparison in your "userdata" variable. An if then statement would work however. [if ("[userData]" ^ ",") | ("[userData]" ^ ",") |...] [then] [math show=f]check=0[/check][!]invalid [/!] [/then] [else] [math show=f]check=1[/check][!]move on [/!] [else] [/if] That kind of thing. the "|" means "or". Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Rubbish in form fields ( Paul Willis 2004)
  2. Re: Rubbish in form fields ( Donovan Brooke 2004)
  3. Re: Rubbish in form fields ( Joe D'Andrea 2004)
  4. Rubbish in form fields ( Pat Holliday 2004)
Pat Holliday wrote: > Hi, > > I'm building a system that has to perform calculations on inputted data, > hence it's very important that users aren't allowed to enter any old > thing into the form fields. > > Was wondering if anyone had a rock-steady way of checking this - for > instance a multiple criteria [showif] tag or something? > > [showif [UserData]^,./@£$%*] > > [text]Form=Error[/text] > > [/showif] > > Thanks, > > Pat Hi Pat, The statement above will not work because it will try to find that entire comparison in your "userdata" variable. An if then statement would work however. [if ("[userData]" ^ ",") | ("[userData]" ^ ",") |...] [then] [math show=f]check=0[/check][!]invalid [/!] [/then] [else] [math show=f]check=1[/check][!]move on [/!] [else] [/if] That kind of thing. the "|" means "or". Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan Brooke

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:

Where is f2? (1997) WCS Newbie question (1997) More news on 5.0 (2003) quotes and truncating? (1997) web delivery (1997) Is there an alternative to emailer? (1999) New servers and new inline cache (1997) Help name our technology! I found it (1997) Location of Browser Info.txt file (1997) RequiredFields template (1997) Configuring E-mail (1997) WebSTAR 2.1 freezes my Mac (1997) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) RE: [WebDNA] [OT] DNS Services (2010) Frames and WebCat (1997) MATH TIME (1997) search for range (2000) searching multiple databases in single search (1997) [WebDNA] Connect to MS SQL (2013) shipcost (1997)