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:
Friday night shopping site joke (1997)
Re:Emailer and encryption (1997)
graphics server, SSL, Netscape 4.0 (off topic) (1998)
'does not contain' operator needed ... (1997)
off topic - dna snipets (1997)
[WebDNA] Encrypted Templates - Includes (2014)
PSC recommends what date format yr 2000??? (1997)
Re:Has this happened to you? (1997)
Searching by Date Comparison (2000)
[OT] DOD again (2003)
NT 4.0/IIS WebCat Installation (1998)
WebCat2b15MacPlugin - showing [math] (1997)
New Site Announcement (1998)
Displaying text and populating form fields (2005)
page redirect in webDNA (1997)
Webcat serving error page? (2000)
Email notification to one of multiple vendors ? (1997)
backup dbs (2005)
Cookie woes with Mac IE4 (1998)
Limiting user access to .tmpl files (1997)