title: HTML: Radio Button Array
body: <p>Ok, so, I have a different kind of problem when dealing with Radio button arrays than the other threads.</p>
  
  <p>I want to have it so that, depending on the answer selected, the value is saved on a different Array, yet I don't want to have the user being able to select more than one option from the same question.</p>
  
  <p>Example:</p>
  
  <pre><code>Question 1
  &lt;input type="radio" name="Array1[]" value="question1"/&gt;
  &lt;input type="radio" name="Array2[]" value="question1"/&gt;
  &lt;input type="radio" name="Array3[]" value="question1"/&gt;
  &lt;input type="radio" name="Array4[]" value="question1"/&gt;
  
  Question 2
  &lt;input type="radio" name="Array1[]" value="question2"/&gt;
  &lt;input type="radio" name="Array2[]" value="question2"/&gt;
  &lt;input type="radio" name="Array3[]" value="question2"/&gt;
  &lt;input type="radio" name="Array4[]" value="question2"/&gt;
  </code></pre>
  
  <p>The purpose of this is so that I can arrange the questions themselves in one of 4 categories, and fill each array with the questions that got assigned to them.</p>
  
  <p>Example:</p>
  
  <p>Assuming 4 questions, and the answers being 1, 3, 1, 2, the resulting arrays I want would be:</p>
  
  <pre><code>Array1[0] = "question1"
  Array1[1] = "question3"
  
  Array2[0] = "question4"
  
  Array3[0] = "question3"
  
  Array4[] = Empty array
  </code></pre>
  
  <p>Can this be done or do I need a different approach to attain the desired output? I plan to process this form using PHP by the way.</p>
  
  <p>EDIT: Some more details. An example usage.</p>
  
  <pre><code>&lt;h1&gt;What are your preferences?&lt;/h1&gt;
  &lt;form type=...etc.&gt;
      &lt;label&gt;Cats&lt;/label&gt;
      &lt;input type="radio" name="Love[]" value="Cats"/&gt;
      &lt;input type="radio" name="Like[]" value="Cats"/&gt;
      &lt;input type="radio" name="Dislike[]" value="Cats"/&gt;
      &lt;input type="radio" name="Hate[]" value="Cats"/&gt;
      &lt;label&gt;Dogs&lt;/label&gt;
      &lt;input type="radio" name="Love[]" value="Dogs"/&gt;
      &lt;input type="radio" name="Like[]" value="Dogs"/&gt;
      &lt;input type="radio" name="Dislike[]" value="Dogs"/&gt;
      &lt;input type="radio" name="Hate[]" value="Dogs"/&gt;
      &lt;label&gt;Ferrets&lt;/label&gt;
      &lt;input type="radio" name="Love[]" value="Ferrets"/&gt;
      &lt;input type="radio" name="Like[]" value="Ferrets"/&gt;
      &lt;input type="radio" name="Dislike[]" value="Ferrets"/&gt;
      &lt;input type="radio" name="Hate[]" value="Ferrets"/&gt;
      &lt;label&gt;Turtles&lt;/label&gt;
      &lt;input type="radio" name="Love[]" value="Turtles"/&gt;
      &lt;input type="radio" name="Like[]" value="Turtle"/&gt;
      &lt;input type="radio" name="Dislike[]" value="Turtles"/&gt;
      &lt;input type="radio" name="Hate[]" value="Turtles"/&gt;
  &lt;form&gt;
  </code></pre>