Basically what i am trying to achieve is to have:
Question 1:
User 1: () () () () ()
User 2: () () () () ()
Question 2:
User 1: () () () () ()
User 2: () () () () ()
Where the brackets obviously represent radio buttons. As i understand it, in order to store the results, i somehow need to send the question_id, the user_id and the actual value of the radio button(which is 1-5).
At the moment i have my radio buttons named:
<input type="radio" name="'.$get_name_row['0'].'|'.$i.'|'.$get_questions_row['0'].'" value="1"> <input type="radio" name="'.$get_name_row['0'].'|'.$i.'|'.$get_questions_row['0'].'" value="2"> <input type="radio" name="'.$get_name_row['0'].'|'.$i.'|'.$get_questions_row['0'].'" value="3">
And was hoping to split the string based on the | character i am placing between each value. However this poses the question of retrieving it on the other side of the form, as the recieving script has no way of retrieving the value because it doesnt know what to put in the $_REQUEST['']. Am I being a complete idiot here and over complicating it?
Many thanks, David


Sign In
Create Account

Back to top









