this must be possible, but it's escaping me...

How would I go about creating a form that allows me to answer multiple
poll questions on the same page?  I'd like my resulting HTML to look
something like

<form....
  <table>
     <tr>
        <td>
            What's up <input type="hidden" name="question1"
value="1111">
        </td>
        <td>
            <input type="radio" name="answer1" value="1">The sky
            <input type="radio" name="answer1" value="2">Not much
        </td>
     </tr>

     <tr>
        <td>
            How are you? <input type="hidden" name="question2"
value="2222">
        </td>
        <td>
            <input type="radio" name="answer2" value="3">Very well.
            <input type="radio" name="answer2" value="4">Grrrr!
        </td>
     </tr>
  </table>
</form>

I can figure out how to cycle through the questions and answers, but I
can't figure out how to keep track of where I am in the loop to
generate "question1", "question2", etc.  I tried putting in {% i = 0
%}, but that gave me an "invalid block tag" error.

Am I on the right track, or is there another pattern I should be
following?

Reply via email to