Re: Rubbish in form fields
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57321
interpreted = N
texte = >> I'm building a system that has to perform calculations on inputted=20>> data, hence it's very important that users aren't allowed to enter=20>> any old thing into the form fields.>> Was wondering if anyone had a rock-steady way of checking this - for=20=>> instance a multiple criteria [showif] tag or something?>> [showif [UserData]^,./@=A3$%*]>> [text]Form=3DError[/text]>> [/showif]>> Thanks,>> Pat>> Hi Pat, The statement above will not work because it will try to find=20=> that entire> comparison in your "userdata" variable.>> An if then statement would work however.>> [if ("[userData]" ^ ",") | ("[userData]" ^ ",") |...]> [then]> [math show=3Df]check=3D0[/check][!]invalid [/!]> [/then]> [else]> [math show=3Df]check=3D1[/check][!]move on [/!]> [else]> [/if]>> That kind of thing.>> the "|" means "or".[showif [Grep search=3D[^0-9]&replace=3Derror][UserData][/Grep]^error] [text]Form=3DError[/text][/showif]Paul-------------------------------------------------------------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:
>> I'm building a system that has to perform calculations on inputted=20>> data, hence it's very important that users aren't allowed to enter=20>> any old thing into the form fields.>> Was wondering if anyone had a rock-steady way of checking this - for=20=>> instance a multiple criteria [showif] tag or something?>> [showif [UserData]^,./@=A3$%*]>> [text]Form=3DError[/text]>> [/showif]>> Thanks,>> Pat>> Hi Pat, The statement above will not work because it will try to find=20=> that entire> comparison in your "userdata" variable.>> An if then statement would work however.>> [if ("[userData]" ^ ",") | ("[userData]" ^ ",") |...]> [then]> [math show=3Df]check=3D0[/check][!]invalid [/!]> [/then]> [else]> [math show=3Df]check=3D1[/check][!]move on [/!]> [else]> [/if]>> That kind of thing.>> the "|" means "or".[showif [Grep search=3D[^0-9]&replace=3Derror][UserData][/Grep]^error] [text]Form=3DError[/text][/showif]Paul-------------------------------------------------------------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/
Paul Willis
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:
retail and wholesale... (2000)
Attn: Bug in GeneralStore example b15 (1997)
stumped on simple sort (1999)
How to Display text in empty fields (1997)
mac hack (1997)
Forcing a NEWCART (1997)
Webcat 3.0.5b9, b8 trigger failures ON WEBSTAR (1999)
Web Delivery First Time Setup Trouble (2000)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Emailer file formats (1998)
shipping costs (1998)
MetaKW tags from databases (2006)
Bug or syntax error on my part? (1997)
Mac System Experience (1998)
HomePage Caution (1997)
List of consultants/programmers (2001)
Tracking (2004)
Hyperboard users wanting a quoted message (1998)
Upgrading old WebCat Database Files (1997)
Customer - again (1998)