input field value not available

I'm developin a date plugin like doodle.com

But there is a problem in the input form for times for each date. The input fields do not provide an entered value. Here some Code to explain:

the view file:

---------------

if(isset($terminjaeger->dates)) {
    // Hidden input field to check, if ok button is pressed or next Button
    $body .=  elgg_view('input/hidden', array('name' => 'time', 'value' => '1'));
    // time input filed for each date
    foreach($terminjaeger->dates as $k => $d) {
            $body .= "<div class=\"terminjaeger_dates\" id=\"".$d."\">".$d.elgg_view('input/text', array('name' => 'time_'.$d)).elgg_view('input/submit', array('value' => elgg_echo('ok')));
            $body .= "</div>";   
    }
}

----------------

 

the action file:

---------------

// Hidden input field to check, if ok button is pressed or next Button
$timefield = get_input('time');
if(isset($timefield)) {
    foreach($terminjaeger->dates as $k => $d) {
        $timestring = 'time_'.$d;
            $times = get_input($timestring);
            // Test if there is any output
            echo $times."<br>";
            
                $_SESSION['terminjaeger_times'][$d] = substr($times, 4);
                forward("terminjaeger/time");
           
    }
    // Static read of an existing value
    $times = get_input('time_4.7');
    echo $times;
}
// Code if next Button is pressed

// Test if there values

print_r($_SESSION['terminjaeger_times']);

-------------

But there is no output neither the static ($times = get_input('time_4.7');) nor the dynamic (          $times = get_input($timestring);) version.

print_r($_SESSION['terminjaeger_times']); shows the following:

Array (  [4.7] =>  [11.7] =>  [18.7] => )
Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking