go back to previous page where you loop the select tag for answers, right now back track the loops of questions and place inside the label tag with the name="questions_array" and the value='".$v['questions']."'
so it will look like this
echo "<label name='questions_array' value='".$v['questions']."'>".$v['questions']."</label></br/>";
after what I had mentioned before this.
do the same thing of printing the array using print_r and check again if there's no error just like what you did in print_r($_POST['selected_answers']);
now do this also print_r($_POST['questions_array']);
trigger it and see if the correct questions are also passed down to processor.php
I hope tomorrow we continue with the coding. This is where we left:
//If we submitted the form
Was suppose to accomplish:
Its task will be to check the answers chosen, among them there is one correct one and others are wrong. Processor.php should compute by adding one for each correct answer and adding zero for the wrong answers and at the end give out the verdict out of the total number of questions. Thank you once again.
now after placing the style replace the label tag with
Last name: <input id='text_disabled' type='text' value='".$v['question']."' name='questions' disabled>
you see there was 'disabled' on the part of the text box, meaning cannot be edited. so in this manner value attribute is the one that automates to insert the question to the question you dont have to enter the values anymore.
then on your process.php you can now proceed by print_r($_POST['questions']); and now you can be able to pass it on