Re: Numbers only code
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 27912
interpreted = N
texte = someone a while back gave the great idea to check if a variable contains only numberslike this-[showif [math show=T][admingiven]*0[/math]=0][text]gave=anumber[/text][/showif][showif [math show=T][admingiven]*0[/math]!0][text]gave=NOTanumber[/text][/showif]so upon your admin's submit, check to to see that gave=anumber and if not, thenredirect them back to where they just were with a big red error message pointing outthere error, while hiding the rest of what was supposed to happen. If it is a purenumber, then allow the stuff to happen (using [showif [gave]=anumber] do stuff[/showif] ) and do not redirect.-Johnberk@voicenet.com wrote:> Does anyone know of a way to only allow a user to input numbers and decimal> point only and to not allow and other characters or blank spaces? I have a> form where site admins. need to put in price only and some are putting in> characters which are messing up my formulas.>> Thanks,> Mark>> -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to
.>> 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 -------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Associated Messages, from the most recent to the oldest:
someone a while back gave the great idea to check if a variable contains only numberslike this-[showif [math show=T][admingiven]*0[/math]=0][text]gave=anumber[/text][/showif][showif [math show=T][admingiven]*0[/math]!0][text]gave=NOTanumber[/text][/showif]so upon your admin's submit, check to to see that gave=anumber and if not, thenredirect them back to where they just were with a big red error message pointing outthere error, while hiding the rest of what was supposed to happen. If it is a purenumber, then allow the stuff to happen (using [showif [gave]=anumber] do stuff[/showif] ) and do not redirect.-Johnberk@voicenet.com wrote:> Does anyone know of a way to only allow a user to input numbers and decimal> point only and to not allow and other characters or blank spaces? I have a> form where site admins. need to put in price only and some are putting in> characters which are messing up my formulas.>> Thanks,> Mark>> -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to .>> 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 -------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
John Butler
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:
Format date.... (2003)
input and accents (2000)
Email truncation in Eudora. (1998)
[math] are you there? (1999)
RAM variables (1997)
Re:quit command on NT (1997)
Error (1997)
Generating Report Totals (1997)
[WebDNA] WebDNA and Google Geo Tagging (2012)
Note added to [sendmail] in Docs (2004)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
Not really WebCat (1997)
ConvertChars (2000)
SKU (1997)
instant cookies? (1999)
Searching multiple fields (1997)
Summary Searches (2000)
Allowed fields in formulas.db (1998)
WebCat2b15MacPlugin - showing [math] (1997)
Date Formats (1997)