Menu

#6 Errors with several forms

open
nobody
None
5
2009-08-03
2009-08-03
No

As error divs are bound to form field names, there are problems when you have two forms in a page if there are some repeated form filed names.

For example, in the following code errors for second form are shown in the first form:

<form name="form1">
<input type="text" name="user" />
<yav:rule value="user|required" />
</form>

<form name="form2">
<input type="text" name="user" />
<yav:rule value="user|required" />
</form>

Discussion


Log in to post a comment.