php - Try to get selected value from multiple selected value -


i have form select multiple values. showing selected value along showing error notice: undefined offset: 5 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1559

notice: undefined offset: 3 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1559

notice: undefined offset: 5 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1571

notice: undefined offset: 5 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1571

notice: undefined offset: 6 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1559

notice: undefined offset: 4 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1559

notice: undefined offset: 6 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1571

notice: undefined offset: 6 in /var/www/lo/g8_tool/g8_gusr/test.php on line 1571

for($g8_i=0;$g8_i<$g8_count;$g8_i++) {   if($g8_j!=count($g8_groupy_arr))  {   if($g8_groupy_arr[$g8_i] == $g8_group_y[$g8_j])  {    $g8_selected = "selected";    #echo $g8_groupy_arr[$g8_i]."<br>";     $g8_j++;     $g8_str.="<option value=".$g8_groupy_arr[$g8_i]." ".$g8_selected.">".$g8_groupy_arr[$g8_i]."</option>";     } else     {         $g8_selected = "";         #echo $g8_groupy_arr[$g8_i]."<br>";         $g8_str.="<option value=".$g8_groupy_arr[$g8_i]." ".$g8_selected.">".$g8_groupy_arr[$g8_i]."</option>";      }     #$g8_str.="<option value=".$g8_groupy_arr[$g8_i]." ".$g8_selected.">".$g8_groupy_arr[$g8_i]."</option>";     } else {              break;         }     } 


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -