Well, here's the more complete version of the code. Ugly as sin, but
oh well
If you have a form with three fields
- login
- password
- pasword_repeat
you may try to validate the form as follows:
F = fun(A, Field1, Field2) -> [Field1, {error}];
validate(A, [
{login, {'=', "user"}},
{password, [
{password, {'=', password_repeat}},
{password, {F, password_repeat}}
]
}
])
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---