I would be great to be able to validate a group of form elements together, say, in style "please check at least one of the checkboxes" or "you did not provide any name information" (when there are three edit boxes for name information, and at least in one of them must not be empty).

Any suggestion on how to do this in SmartyValidate? (maybe even an idea for enhancing this plugin?)

Assume user opens in 2 browser windows the same form with different data Say, user wants to send 2 forum messages, but has slow connection and don't want to wait for a single window to reload. So, he opens 2 post forms, fills first form, submits. SmartyValidator gots form data, return 'ok', and script makes 'disconnect'. So, when user submits second form, validator has no clue what those data about.

I find the only possibility: never call 'diconnect'.
But I don't like such a pollution of session data.

Assume user opens in 2 browser windows the same form with different data Say, user wants to send 2 forum messages, but has slow connection and don't want to wait for a single window to reload. So, he opens 2 post forms, fills first form, submits. SmartyValidator gots form data, return 'ok', and script makes 'disconnect'. So, when user submits second form, validator has no clue what those data about.

I find the only possibility: never call 'diconnect'.
But I don't like such a pollution of session data.

This is no different than having multiple forms on one page. Make sure you use a unique form id each time to register a form, and use that id throughout the validation process.

[quote] Make sure you use a unique form id each time to register a form, and use that id throughout the validation process.[/quote]

This still has some minor problems with:
1. Load Form -> Submit -> Back -> Submit
2. Load Form -> Duplicate window ("Duplicate" in Opera, "New" in IE) -> Submit first window -> Submit second Window
Both this cases has no chance to generate new form id since form is not reloaded from server.
3. Pages often contain forms that will rarely be submited by user, but their registration with unique ids fills session data with junk.

It doesn't matter. I've already made my own similar validator class/plugin which doesn't use session at all.

first I just where happy about smarty validate, It is really helpfull and works fine for me on static sites but I have some little problems with it also

1. I don't exactly understand this SmartyValidate::register_validator thing, I expirienced that I have to call this at form generation and not after form submission. If I call connect and register_validator after form submission, right before the is_valid method it wont work. I think I have just a problem looking into the right direction

2. Coming with this issue above, I tried to create a prototype/scriptuclous based ajax form. Its an textfield that will be replaced by a input field and sends a value via get method. Sending the value works finde it reaches the php script but I really don't know how to validate it, because smarty-validate allways says its empty (on notEmpty validation)

Since the value comes to the php script the ajax stuff isn't that important so I don't waste your time with this code