I want to store my html form data in a 2-dimensional array, I am having problems displaying the contents of the array in my php code and was wondering if any1 could give me some tips. Here is my code for my html form.
<input type="radio" name="var[0][]" value="1-2">
<input type="radio" name="var[0][]" value="2-3">
<input type="radio" name="var[1][]" value="Happy">
<input type="radio" name="var[1][]" value="Sad">
<input type="radio" name="var[1][]" value="Why me">
I want to use a two dimensional array because the form is a survey with 40 questions, and some questions can have more than one answer.
I tried to use $_POST to display the array with no success.
What is the proper command to display an element of the array?