tags:

views:

147

answers:

1

When two forms on one page have the same-named field, Django will generate invalid HTML:

<!--one form -->
<input id="id_name"..../>
...
<!--another form-->
<input id="id_name".../>

Invalid because two or more nodes share the same id.

How can this be avoided?

Thanks.

+5  A: 

You need to use form prefixes, as documented here.

shanyu