On Jan 22, 3:45 pm, Chris Brand <[EMAIL PROTECTED]> wrote:
> I'd start by looking at the HTML that results, particularly the "input name" 
> parts. From your symptoms, it sounds like you may have two (or more) with the 
> same name.
>
> Chris

Thanks, Chris.

Here's some example output. As you can see, the prefix-adding part of
the code does what it'ssupposed to, in that each input line for the
answers is uniquely marked. The problem I've got is the set of answers
provided per question, as they should be different from one question
to the next.

  - Tim



<html>
    <head>
        <title>Survey Display</title>
    </head>
    <body>
        <h2>Stop! Who approacheth the Bridge of Death must answer me
these questions three, ere the other side he see.</h2>
        <form action="." method="post">
            <ol>

                <li> <p>What is your quest?</p>
                    <p><label for="id_answers_0">Answers:</label> <ul>
<li><label><input type="radio" id="id_answers_0" value="0"
name="answers" /> Red!</label></li>
<li><label><input type="radio" id="id_answers_1" value="1"
name="answers" /> Purple!</label></li>
</ul></p>
                </li>

                <li> <p>What is your favourite colour?</p>
                    <p><label for="id_1-answers_0">Answers:</label>
<ul>
<li><label><input type="radio" id="id_1-answers_0" value="0" name="1-
answers" /> Red!</label></li>
<li><label><input type="radio" id="id_1-answers_1" value="1" name="1-
answers" /> Purple!</label></li>
</ul></p>
                </li>

            </ol>
            <input type="submit">
        </form>
    </body>
</html>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to