On 11/22/05, Kevin <[EMAIL PROTECTED]> wrote:
> {% for option_set in item.get_options %}
>
> <h1>{{option_set.name}}</h1>
> {% for option in option_set.get_choices %}
> <input type="radio" name="option[{{option_set.id}}]"
> value="{{option.id}}"> {{option.name}}
> {% endfor %}
> {% endfor %}

In this example, there's nothing forcing you to use the square
brackets. You could just use a hyphen:

   <input type="radio" name="option-{{option_set.id}}">

...or no character at all:

   <input type="radio" name="option{{option_set.id}}">

All that matters is that the view code that processes this knows what
format to expect.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to