Re: Email check problems

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24665
interpreted = N
texte = I think I can answer these.> 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. mmmm This sounds odd. There is a return in [mailerror] below, other than that it should work. What url is it redirecting to? Copy and paste the error driven url & send it in and that should pretty much tell the story.> [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[/!] > 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. It will ignore any checkboxes that aren't checked, because it doesn't even see them. In other words if a check box isn't check it never gets sent as a formvariable and therefore is never checked and is never sent back. Radio buttons I would think if neither is checked then again you would run into the same problem. To solve the issue for the radio buttons set a hidden value for the radio button you wish to test to null. ieMake sure it is at the end of your form. Then if neither radio button is checked and the form is submitted the hidden value takes presidence and is of course blank and rejected by the script.You can do the same thing with the checkbox, but I am not sure why you would other than to force them to check it. Like I agree with this section.> 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. This may have been a problem with email putting in returns where they shouldn't be. Otherwise its not really sensitive at all. ------------------------------------------------------------- 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)
I think I can answer these.> 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. mmmm This sounds odd. There is a return in [mailerror] below, other than that it should work. What url is it redirecting to? Copy and paste the error driven url & send it in and that should pretty much tell the story.> [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[/!] > 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. It will ignore any checkboxes that aren't checked, because it doesn't even see them. In other words if a check box isn't check it never gets sent as a formvariable and therefore is never checked and is never sent back. Radio buttons I would think if neither is checked then again you would run into the same problem. To solve the issue for the radio buttons set a hidden value for the radio button you wish to test to null. ieMake sure it is at the end of your form. Then if neither radio button is checked and the form is submitted the hidden value takes presidence and is of course blank and rejected by the script.You can do the same thing with the checkbox, but I am not sure why you would other than to force them to check it. Like I agree with this section.> 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. This may have been a problem with email putting in returns where they shouldn't be. Otherwise its not really sensitive at all. ------------------------------------------------------------- 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 Bob Minor

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:

Separate SSL Server (1997) Time comparison question (1998) WebStar quitting since upgrading to WC4 (2000) SQL statements (2002) Search/sort in URL Was: GuestBook example (1997) Relay link (2002) [WebDNA] Problem with Trigers. (2013) aaron kant add (2.x) (2000) Stopping bad HTML propagation ? (1997) Webcatalog 4.0 on Mac OS & WebStar (2000) Problem with 2.1b3 (1997) WebMerchant Error (1998) Permission Denied Error (2001) WebCatalog 4.0.1 has been released! OSXS (2000) Setting the Date (2000) how many users (2000) WebCat2: multiple currency support (1997) Bug? (1997) restarting service remotely on NT (1997) A question on sub-categories (1997)