i want to save the values in one array where have the following positions:
array[1] -> id_resp
array[2] -> corp_resp
array[3] -> date  
array[4] -> menuId
array[5] -> id
array[6] -> id_resp
array[7] -> corp_resp
array[8] -> date  
array[9] -> menuId
array[10] -> id
      .
      .
There you can see the var_dump is given in that page and the table where need to get the values.
There is what is in database and what we need to have correctely in database:
    id_resp     corp_resp        date         MenuId    id
    654           0.3          2016-11-25        6      28    <- inserted in database wrong.
 Correct need to be that to be the output in the database:
        654           0.3          2016-11-25        4      28 
        655           0.3          2016-11-25        5      28  
        656           0.35         2016-11-25        6      28 
That is the code after the option value submitted. There is given the wrong output like you can see in the top.
 $id_resp = (isset($_POST['id_resp']) ? $_POST['id_resp'] : '');
 $corp_resp = (isset($_POST['corp_resp']) ? $_POST['corp_resp'] : '');
 $id = $_SESSION['UtilizadorID'];
 $data = (isset($_POST['data']) ? $_POST['data'] : '');
 $menuId = $_SESSION['menuID'];
 var_dump ($menuId);
 mysql_query("INSERT INTO respostas 
                    (id_resp, corp_resp,id,data,menuId) 
             VALUES ('','" . $corp_resp . "','" . $id . "', NOW( ) , '$menuId')")  
    or die("Alguma coisa correu mal durante o registo. MySQL erro: ".mysql_error());

 
    