I know I probably could find the answer to this question by going through docs and samples, but I've been through that so much in the past couple weeks that I was hoping I could play my "get out of jail free" card.
I have a form that registers a user. Field validation can be done easily on the client side. But, in the case that I must check whether the user tries to register a name that already exists, I need to hit my user database and then return to the form if an error occurs. Basically, I bind my form to a bean, call form.load, call form.show to show the form, call form.save to load the request data into the bean, then check if the user already exists. If the user does already exist, then I obviously need to start over again and display that error (and display the fields they already entered). Might anyone be able to point me in the right direction of how to accomplish this with CForms? Do I simply call form.show again? How do I insert this error into the validation errors framework? Thanks, JF __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
