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 numbers like 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, then redirect them back to where they just were with a big red error message pointing out there error, while hiding the rest of what was supposed to happen. If it is a pure number, 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:

    
  1. Re: Numbers only code ( 2000)
  2. Re: Numbers only code (John Butler 2000)
  3. Re: Numbers only code (Michael Winston 2000)
  4. Re: Numbers only code (Michael Winston 2000)
  5. Numbers only code ( 2000)
someone a while back gave the great idea to check if a variable contains only numbers like 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, then redirect them back to where they just were with a big red error message pointing out there error, while hiding the rest of what was supposed to happen. If it is a pure number, 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:

if else problem (2003) WebCat & cookies (1998) shipping costs (1997) [WebDNA] Calculate Cube root (2012) Version 2.0 and 1.6 simultaneous (1997) Display [price] in banner ad (1998) Re(2): Re(2): SSL, WebSTAR, WebCatalog (1998) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) acrobat -> wc (1998) RE: [WebDNA] [AddFields] Restrictions (2012) Comments in db? (1997) Altavista causes a problem? (1998) [WebDNA] More wish-list requests implemented (2016) [OT] DNS Problems (2004) RE: Sorting error (1997) Currency Conversion (2003) textarea to page display (1998) Where is the secure setting for text variables? (2003) WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997) creates folders with AS (1997)