I have a multiple checkbox in my html table with $number as index ">
I get the value of the multiple checkbox:
$checklist = $_POST['checkbox'];
The value of the $checklist are correct when i do echo.
$i = $checklist[0];
echo $i; // 2 for example
Now i try to get the node number $i (2) in my xml file
$participants = simplexml_load_file($fileName); Then this line echo $participants->participant[$i]->name; display blank
Or if define $j = 2; then echo $participants->participant[$j]->name; display the name of the participant 3 ($j + 1) and that is correct.
That mean $check or $i = $checklist[0]; don't give a simple number like $j, any idea please ? Thanks in advance.