I would like to get the form ID with PHP. This is my HTML code. Each answer per question, has an ID.
<br><br><h3>Vraag 1: Wat is de juiste formule van Arbeid?</h3>
<input type="radio" name="question-1" id="question-1-A" value="2" />
<label for="question-1-A">A) Kracht (in Newton) keer Lengte (in meter) </label>
<input type="radio" name="question-1" id="question-1-B" value="0" />
<label for="question-1-B">B) Kracht keer Massa</label>
<input type="radio" name="question-1" id="question-1-C" value="0" />
<label for="question-1-C">C) Kracht keer valversnelling</label>
<input type="radio" name="question-1" id="question-1-D" value="0" />
<label for="question-1-D">D) Geen van deze antwoorden</label>
So in PHP, I receive the values like this, to calculate the score:
$q1=$_POST['question-1'];
But how can I receive the ID and make it so that
if (*QUESTION-1-A* *IS FILLED IN*)
{
echo "You filled in A"
}
How do I do this?