Verify entry into a text field

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62351
interpreted = N
texte = I have a very simple registration signup form with 4 fields username password email secret word I use this kinda code to make sure the Username, Password, and SecretWord fields have data within them [math show=f]OK=1[/math] [showif [user]=] Error!
Enter a username

Try Again
[math show=f]OK=0[/math] [/showif] [showif [url][pass][/url]=] Error!
Enter a Password

Try Again
[math show=f]OK=0[/math] [/showif] and the same for SecretWord For the Email field I use a rather lengthy javascript snippet to check format etc, so that bad email entries are avoided since I automatically email an activation code after signup. All works like a charm 99.5% of the time I guess This morning someone was able to submit that form with all fields blank, which caused [user] [pass] [email] [secretword] to be written to the datanase. This then caused a little wierdness to happen on another page for a reason I haven't been able to determine yet. BUT what I'm wondering is..... Is my way the best way to ensure the fields are NOT empty??? is there a better way??? I don't want to use webdna errors.db for this, as my way keeps the design of the pages intact.... I'm just puzzled why I can never ever get it to fail, yet on 3 occasions or so it has for other individuals. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------- 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:

    
  1. Re: Verify entry into a text field ( Donovan Brooke 2005)
  2. Re: Verify entry into a text field ( Lester 2005)
  3. Re: Verify entry into a text field ( Donovan Brooke 2005)
  4. Re: Verify entry into a text field ( John Peacock 2005)
  5. Re: Verify entry into a text field ( Lester 2005)
  6. Re: Verify entry into a text field ( John Peacock 2005)
  7. Verify entry into a text field ( Lester 2005)
I have a very simple registration signup form with 4 fields username password email secret word I use this kinda code to make sure the Username, Password, and SecretWord fields have data within them [math show=f]OK=1[/math] [showif [user]=] Error!
Enter a username

Try Again
[math show=f]OK=0[/math] [/showif] [showif [url][pass][/url]=] Error!
Enter a Password

Try Again
[math show=f]OK=0[/math] [/showif] and the same for SecretWord For the Email field I use a rather lengthy javascript snippet to check format etc, so that bad email entries are avoided since I automatically email an activation code after signup. All works like a charm 99.5% of the time I guess This morning someone was able to submit that form with all fields blank, which caused [user] [pass] [email] [secretword] to be written to the datanase. This then caused a little wierdness to happen on another page for a reason I haven't been able to determine yet. BUT what I'm wondering is..... Is my way the best way to ensure the fields are NOT empty??? is there a better way??? I don't want to use webdna errors.db for this, as my way keeps the design of the pages intact.... I'm just puzzled why I can never ever get it to fail, yet on 3 occasions or so it has for other individuals. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------- 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/ Lester

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:

select multiple (1997) Using [Include] Context (1999) Counting LineItems (2000) Forcing Search w/ URL (1999) quantity minimum problem (1997) problem with applets embedded in tpl files (1997) AUTHENTICATE TAG Problem (2000) DON'T use old cart file! (1997) Sendmail strangie (2002) Sorting Orders (1997) Type 2 errors with WebCatalog.acgi (1997) Can you do this??? and other stuff (1997) PHP vs. WebDNA (2003) Extended [ConvertChars] (1997) Authenticate and IIS (1997) RE: webcat license???? (1997) looking for developers with solutions (2000) NT Email Stops Sending (2000) PSC recommends what date format yr 2000??? (1997) More Hide IFs (2000)