Mareid
25-May-2007, 12:11 AM
I am writing a form that is intended to provide information to AANE (Asperger's Association of New England) about all kinds of community resources. I am so impressed with this program! I have my entire form working including good and bad templates, and the template that formats the output email to our db administrator. I do have one question (I think this is is the only one left...)
Using required fields, I get a list of all missing fields. When I use multiple condition statements, however, I get only the first error field.
Both error conditions are working, because when I make only one error, I get output from whichever one is incorrect (e.g. if I do not put in a valid email address, but I do put in name, I get a correct message that I need a valid email address; conversely, if I put in a correct email address, but do not put in the name, I get a correct message that the name field is blank).
Does formmail provide just the first error, or am I doing something wrong? I
Normally, I would use 'required' because it is simple and works well, but I do like the field validation that I found in the forums (it's not quite right, hyphen is also a legal character and I'll post that as a reply) so that I can (sort of) validate the email address. Of course that does not stop someone from putting in micky.mouse@disney.com, but I'm assuming that my users are not intentionally trying to be funny.
Using required fields, I get a list of all missing fields. When I use multiple condition statements, however, I get only the first error field.
Both error conditions are working, because when I make only one error, I get output from whichever one is incorrect (e.g. if I do not put in a valid email address, but I do put in name, I get a correct message that I need a valid email address; conversely, if I put in a correct email address, but do not put in the name, I get a correct message that the name field is blank).
Does formmail provide just the first error, or am I doing something wrong? I
Normally, I would use 'required' because it is simple and works well, but I do like the field validation that I found in the forums (it's not quite right, hyphen is also a legal character and I'll post that as a reply) so that I can (sort of) validate the email address. Of course that does not stop someone from putting in micky.mouse@disney.com, but I'm assuming that my users are not intentionally trying to be funny.