Re: Rubbish in form fields
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57316
interpreted = N
texte = Just a snippet of code submitted for your consideration:First set, myErrorDesc, myerror and passerror to known values. My code goes through a whole bunch of routines and checking like that below and when it's all done, if myerror=no, then the input is acceptable. If not, myErrorDesc is displayed and the user has to try again.[!]Check to make sure the password field has been submitted[/!][ShowIf [url][_sspass][/url]=][text]myerror=yes[/text][text]myErrorDesc=[myErrorDesc]You must enter a Password
[/text][/ShowIf][!] Loop through Password to make sure it's only allowed characters [/!][!] ================================================================== [/!][text]GoodChars=abcdefghijklmnopqrstuvwxyz0123456789[/text][loop start=1&end=[countchars][_sspass][/countchars]][!] character [index] = [getchars start=[index]&end=[index]][_ssun][/getchars] [/!][hideif [GoodChars]^[getchars start=[index]&end=[index]][_sspass][/getchars]][text]passerror=yes[/text][/hideif][/loop][showif [passerror]=yes][text]myerror=yes[/text][text]myErrorDesc=[myErrorDesc]There is an invalid character in your password
Only a-z, A-Z and 0-9.
NO SPACES OR DASHES, PLEASE![/text][/showif]-- _______________________________________________________________ Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Centurywebhosting ~ co-location ~ wireless access ~ WebCat programming-------------------------------------------------------------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:
Just a snippet of code submitted for your consideration:First set, myErrorDesc, myerror and passerror to known values. My code goes through a whole bunch of routines and checking like that below and when it's all done, if myerror=no, then the input is acceptable. If not, myErrorDesc is displayed and the user has to try again.[!]Check to make sure the password field has been submitted[/!][ShowIf [url][_sspass][/url]=][text]myerror=yes[/text][text]myErrorDesc=[myErrorDesc]You must enter a Password
[/text][/ShowIf][!] Loop through Password to make sure it's only allowed characters [/!][!] ================================================================== [/!][text]GoodChars=abcdefghijklmnopqrstuvwxyz0123456789[/text][loop start=1&end=[countchars][_sspass][/countchars]][!] character [index] = [getchars start=[index]&end=[index]][_ssun][/getchars] [/!][hideif [GoodChars]^[getchars start=[index]&end=[index]][_sspass][/getchars]][text]passerror=yes[/text][/hideif][/loop][showif [passerror]=yes][text]myerror=yes[/text][text]myErrorDesc=[myErrorDesc]There is an invalid character in your password
Only a-z, A-Z and 0-9.
NO SPACES OR DASHES, PLEASE!
[/text][/showif]-- _______________________________________________________________ Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Centurywebhosting ~ co-location ~ wireless access ~ WebCat programming-------------------------------------------------------------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/
Joe D'Andrea
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:
Error Lob.db records error message not name (1997)
convertWords... NEW (2001)
embedded showif statements (2000)
Sending order notification by fax (1999)
Extended [ConvertChars] (1997)
New public beta available (1997)
Couple of questions (1999)
Clear command and ShoppingCart.tmpl (1997)
AutoReload? RequireComment? InterpretAll? (1999)
Hiding usernames and passwords in URL (1998)
Sku numbers (1997)
Fwd: Handling Charges (1999)
WebCatalog 4.0.2b5 install problems (2000)
emailer w/F2 (1997)
Encrypt/Decrypt (2007)
A question on sub-categories (1997)
Template Not Found (1998)
off topic - dna snipets (1997)
Frames and WebCat (1997)
[WebDNA] OT - Selling Domain Names? (2009)