Email check problems

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24663
interpreted = N
texte = All: I'm having problems getting Bob Minor's Validation Checker code to work on a form page I have, and would like to see if anyone using that code can help. Two main problems:1) If I limit the form to simple text inputs, it works as advertised and kicks the user back to the form page if they've not filled in a field with -rqf on the end, or entered an improper email address. However, it isn't reporting the # of errors nor is it retaining the values of the formvariables when it returns to the form.2) The form also normally has check boxes and radio buttons. It doesn't seem to work correctly with these, even if the form fields don't include an -rqf in the name. I don't think it likes the fact that some check boxes may not be checked and thus won't have a value. I thought I'd tested with just radio buttons (which share a field name and should work better) but now I'm not sure.I know #1 should work, so I'd like to solve what might be going on there first. Then I can move on to #2 once that is settled... maybe what's broken in #1 will fix #2.Thanks. I'm including Bob's message below. BTW, I hadn't realized that WebDNA was so sensitive to extra CRs and line breaks... it flat out didn't work until I got rid of many of the added breaks in the code below.> On 11/3/99 5:02 PM, Bob Minor at bob@cybermill.com wrote: > > [!]ValidationChecker - This routine checks the value of all form values that > contain rqf and returns to the referring page with all the form values if > any fields are empty or your email does not contain an '@' symbol a space ' > ' or a '.' within 4 letters of the end of the value. To have this routine > check your form variable simply pop it into the page your form submits to > and name your required fields with a '-rqf' or a '_rqf' Copyright 1999 > Cybermill Communications. This script is free to use and distribute as long > as this comment is retained. Please send all enhancements to > bob@cybermill.com[/!] > > [math show=f]error=0[/math][math show=F]mailerror=0[/math][math > show=f]notest=0[/math] > [text]testvar=999999999999[/text] > [formvariables name=rqf&exact=F] > [hideif [name]=template] > [listwords words=[testvar]&delimiters=,][showif [name]=[word]][math > show=f]notest=1[/math][/showif][/listwords] > [text]testvar=[testvar],[name][/text] > [hideif [notest]=1] > [showif [url][value][/url]=][math show=F]error=error+1[/math][/showif] > [showif [name]^email][hideif [value]^@][math > show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][hideif > [GetChars start=2&end=4&from=end][value][/GetChars]^.][math > show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][showif > [URL][value][/URL]^%20][math show=F]error=error+1[/math][/showif][/showif] > [/hideif][showif [notest]=1][math show=f]notest=0[/math][/showif] > [/hideif] > [/formvariables] > > [!]Redirect with the number of errors an all of the formvariables intact[/!] > > [showif [math]error[/math]>0] > [redirect [listwords Words=[referrer]&delimiters=?][showif > [index]=1][word][/showif][/listwords]?error=[math]error[/math]&mailerror=[ma > ilerror][formvariables][hideif > [name]=template]&[name]=[url][value][/url][/hideif][/formvariables]] > [/showif] > [!]End ValidationChecker routine[/!] ------------------------------------------------------------- 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: Email check problems (Bob Minor 1999)
  2. Re: Email check problems (Chris Vargas 1999)
  3. Re: Email check problems (Bob Minor 1999)
  4. Email check problems -1 (Chris Vargas 1999)
  5. Email check problems (Chris Vargas 1999)
All: I'm having problems getting Bob Minor's Validation Checker code to work on a form page I have, and would like to see if anyone using that code can help. Two main problems:1) If I limit the form to simple text inputs, it works as advertised and kicks the user back to the form page if they've not filled in a field with -rqf on the end, or entered an improper email address. However, it isn't reporting the # of errors nor is it retaining the values of the formvariables when it returns to the form.2) The form also normally has check boxes and radio buttons. It doesn't seem to work correctly with these, even if the form fields don't include an -rqf in the name. I don't think it likes the fact that some check boxes may not be checked and thus won't have a value. I thought I'd tested with just radio buttons (which share a field name and should work better) but now I'm not sure.I know #1 should work, so I'd like to solve what might be going on there first. Then I can move on to #2 once that is settled... maybe what's broken in #1 will fix #2.Thanks. I'm including Bob's message below. BTW, I hadn't realized that WebDNA was so sensitive to extra CRs and line breaks... it flat out didn't work until I got rid of many of the added breaks in the code below.> On 11/3/99 5:02 PM, Bob Minor at bob@cybermill.com wrote: > > [!]ValidationChecker - This routine checks the value of all form values that > contain rqf and returns to the referring page with all the form values if > any fields are empty or your email does not contain an '@' symbol a space ' > ' or a '.' within 4 letters of the end of the value. To have this routine > check your form variable simply pop it into the page your form submits to > and name your required fields with a '-rqf' or a '_rqf' Copyright 1999 > Cybermill Communications. This script is free to use and distribute as long > as this comment is retained. Please send all enhancements to > bob@cybermill.com[/!] > > [math show=f]error=0[/math][math show=F]mailerror=0[/math][math > show=f]notest=0[/math] > [text]testvar=999999999999[/text] > [formvariables name=rqf&exact=F] > [hideif [name]=template] > [listwords words=[testvar]&delimiters=,][showif [name]=[word]][math > show=f]notest=1[/math][/showif][/listwords] > [text]testvar=[testvar],[name][/text] > [hideif [notest]=1] > [showif [url][value][/url]=][math show=F]error=error+1[/math][/showif] > [showif [name]^email][hideif [value]^@][math > show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][hideif > [GetChars start=2&end=4&from=end][value][/GetChars]^.][math > show=F]error=error+1[/math][math show=F]mailerror=1[/math][/hideif][showif > [url][value][/URL]^%20][math show=F]error=error+1[/math][/showif][/showif] > [/hideif][showif [notest]=1][math show=f]notest=0[/math][/showif] > [/hideif] > [/formvariables] > > [!]Redirect with the number of errors an all of the formvariables intact[/!] > > [showif [math]error[/math]>0] > [redirect [listwords Words=[referrer]&delimiters=?][showif > [index]=1][word][/showif][/listwords]?error=[math]error[/math]&mailerror=[ma > ilerror][formvariables][hideif > [name]=template]&[name]=[url][value][/url][/hideif][/formvariables]] > [/showif] > [!]End ValidationChecker routine[/!] ------------------------------------------------------------- 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 Chris Vargas

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:

Credit card types (1997) enhanced ErrorMessages.db (2002) New Image Gallery using WebDNA and ImageMagick (2003) Deleting Orders (1997) 2 easy questions re: [showif] and [sendmail] (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Download URL & access on the fly ? (1997) Secure server question (1997) Creating comums (1998) cart info (1998) default value from Lookup (was Grant, please help me) (1997) text size limitation (1997) Trouble with formula.db (1997) Null Chars (1999) FW: 2.01 upgrade problems (1997) Lookup Notfound (1998) Roundup function? (1997) PCS Frames (1997) Reversed words (1997) Searching (2004)